Part Number Hot Search : 
80100 ULQ2002 MMBZ5252 MMBV2101 1001K AM1408N7 MAX5523 P3601MSH
Product Description
Full Text Search
 

To Download SAK-C161CS-32RF Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  never stop thinking. microcontrollers data sheet, v3.0, jan. 2001 c161cs-32r/-l c161jc-32r/-l c161ji-32r/-l 16-bit single-chip microcontroller
edition 2001-01 published by infineon technologies ag, st.-martin-strasse 53, d-81541 mnchen, germany ? infineon technologies ag 2001. all rights reserved. attention please! the information herein is given to describe certain components and shall not be considered as warranted characteristics. terms of delivery and rights to technical change reserved. we hereby disclaim any and all warranties, including but not limited to warranties of non-infringement, regarding circuits, descriptions and charts stated herein. infineon technologies is an approved cecc manufacturer. information for further information on technology, delivery terms and conditions and prices please contact your nearest infineon technologies office in germany or our infineon technologies representatives worldwide. warnings due to technical requirements components may contain dangerous substances. for information on the types in question please contact your nearest infineon technologies office. infineon technologies components may only be used in life-support devices or systems with the express written approval of infineon technologies, if a failure of such components can reasonably be expected to cause the failure of that life-support device or system, or to affect the safety or effectiveness of that device or system. life support devices or systems are intended to be implanted in the human body, or to support and/or maintain and sustain and/or protect human life. if they fail, it is reasonable to assume that the health of the user or other persons may be endangered.
microcontrollers data sheet, v3.0, jan. 2001 never stop thinking. c161cs-32r/-l c161jc-32r/-l c161ji-32r/-l 16-bit single-chip microcontroller
controller area network (can): license of robert bosch gmbh c161cs/jc/ji revision history: 2001-01 v3.0 previous version: 2000-08 v2.0 (intermediate version) 1999-03 (advance information) page subjects (major changes since last revision) 1) 1) changes refer to version 1999-03. all converted to infineon layout 2 derivative synopsis table updated 4 , 6 , 10 , 18 programmable interface routing introduced 27 , 28 gpt block diagrams updated 29 rtc description improved 35 owd description improved 39 ff rstcon and sdlm registers added 51 description of input/output voltage and hysteresis improved 53 separate table for power consumption 57 clock generation mode table updated 60 external clock drive specification improved 62 reset calibration time specified, definition of v aref improved 63 programmable sample time introduced 65 ff timing tables updated to 25 mhz we listen to your comments any information within this document that you feel is wrong, unclear or missing at all? your feedback will help us to continuously improve the quality of this document. please send your proposal (including a reference to this document) to: mcdocu.comments@infineon.com
data sheet 1 v3.0, 2001-01 c161cs/jc/ji 16-bit single-chip microcontroller c166 family c161cs/jc/ji ? high performance 16-bit cpu with 4-stage pipeline C 80 ns instruction cycle time at 25 mhz cpu clock C 400 ns multiplication (16 16 bit), 800 ns division (32 / 16 bit) C enhanced boolean bit manipulation facilities C additional instructions to support hll and operating systems C register-based design with multiple variable register banks C single-cycle context switching support C 16 mbytes total linear address space for code and data C 1024 bytes on-chip special function register area ? 16-priority-level interrupt system with 59 sources, sample-rate down to 40 ns ? 8-channel interrupt-driven single-cycle data transfer facilities via peripheral event controller (pec) ? clock generation via on-chip pll (factors 1:1.5/2/2.5/3/4/5), via prescaler or via direct clock input C additional 32 khz oscillator ? on-chip memory modules C 2 kbytes on-chip internal ram (iram) C 8 kbytes on-chip extension ram (xram) C 256 kbytes on-chip mask rom ? on-chip peripheral modules C 12-channel 10-bit a/d converter with programmable conversion time down to 7.8 m s C two 16-channel capture/compare units (eight io lines each) C two multi-functional general purpose timer units with 5 timers C two asynchronous/synchronous serial channels C high-speed synchronous serial channel (spi) C on-chip can interface (rev. 2.0b active, full can / basic can) with 15 message objects ( c161cs 2x, c161jc 1x ) C serial data link module (sdlm), compliant with j1850, supporting class 2 ( c161jc/ji ) C iic bus interface (10-bit addressing, 400 khz) with 2 channels (multiplexed) C on-chip real time clock ? up to 16 mbytes external address space for code and data C programmable external bus characteristics for different address ranges C multiplexed or demultiplexed external address/data buses with 8-bit or 16-bit data bus width C five programmable chip-select signals C hold- and hold-acknowledge bus arbitration support
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 2 v3.0, 2001-01 ? idle, sleep, and power down modes with flexible power management ? programmable watchdog timer and oscillator watchdog ? up to 93 general purpose i/o lines, partly with selectable input thresholds and hysteresis ? supported by a large range of development tools like c-compilers, macro-assembler packages, emulators, evaluation boards, hll-debuggers, simulators, logic analyzer disassemblers, programming boards ? on-chip bootstrap loader ? 128-pin tqfp package this document describes several derivatives of the c161 group. table 1 enumerates these derivatives and summarizes the differences. as this document refers to all of these derivatives, some descriptions may not apply to a specific product. for simplicity all versions are referred to by the term c161cs/jc/ji throughout this document. table 1 c161cs/jc/ji derivative synopsis derivative on-chip program memory serial bus interface(s) maximum cpu frequency SAK-C161CS-32RF sab-c161cs-32rf 256 kbyte rom can1, can2 25 mhz sak-c161cs-lf sab-c161cs-lf --- can1, can2 25 mhz sak-c161jc-32rf sab-c161jc-32rf 256 kbyte rom can1, sdlm 25 mhz sak-c161jc-lf sab-c161jc-lf --- can1, sdlm 25 mhz sak-c161ji-32rf sab-c161ji-32rf 256 kbyte rom sdlm 25 mhz sak-c161ji-lf sab-c161ji-lf --- sdlm 25 mhz
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 3 v3.0, 2001-01 ordering information the ordering code for infineon microcontrollers provides an exact reference to the required product. this ordering code identifies: ? the derivative itself, i.e. its function set, the temperature range, and the supply voltage ? the package and the type of delivery. for the available ordering codes for the c161cs/jc/ji please refer to the product catalog microcontrollers , which summarizes all available microcontroller variants. note: the ordering codes for mask-rom versions are defined for each product after verification of the respective rom code. introduction the c161cs/jc/ji derivatives are high performance derivatives of the infineon c166 family of full featured single-chip cmos microcontrollers. they combine high cpu performance (up to 12.5 million instructions per second) with high peripheral functionality and enhanced io-capabilities. they also provide clock generation via pll and various on-chip memory modules such as program rom, internal ram, and extension ram. figure 1 logic symbol mcl04450 c161cs/jc/ji v agnd v dd v ss v aref xtal1 xtal2 port 0 16 bit xtal4 xtal3 port 1 16 bit port 2 8 bit port 3 15 bit port 4 8 bit port 6 8 bit port 7 4 bit port 9 6 bit rstin rstout nmi ea ready ale rd wr/wrl port 5 12 bit
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 4 v3.0, 2001-01 pin configuration (top view) figure 2 *) the marked pins of port 4 and port 7 can have interface lines assigned to them (can interface in the c161cs and c161jc , sdlm interface in the c161jc and c161ji ). table 2 on the pages below lists the possible assignments. mcp04451 rstout 1 nmi 2 v ss 3 4 5 p6.0/cs0 6 7 8 9 10 11 12 13 14 15 16 17 v ss 18 19 p9.0/sda0 20 21 22 23 p9.5 24 25 26 p5.0/an0 27 28 29 p5.2/an2 30 31 32 p5.6/an6 33 34 v aref 35 36 37 p5.12/an12/t6in 38 39 40 v ss 41 42 43 p2.8/cc8io/ex0in 44 45 46 47 48 49 50 v ss 51 52 p3.0/t0in/txd1 53 54 55 p3.2/capin p3.3/t3out 56 p3.4/t3eud 57 58 p3.5/t4in p3.6/t3in 59 p3.7/t2in 60 61 p3.8/mrst p3.9/mtsr 62 p3.10/txd0 63 64 p3.11/rxd0 rstin 128 xtal4 127 65 p3.12/bhe/wrh p3.13/sclk 66 67 p3.15/clkout/fout v dd 68 69 70 p4.0/a16 p4.1/a17 71 72 73 74 75 76 77 v dd 78 79 rd 80 wr/wrl 81 82 ready ale 83 ea 84 85 p0l.0/ad0 86 87 88 89 90 91 92 v dd 93 94 p0h.0/ad8 95 p0h.1/ad9 96 126 xtal3 125 xtal1 124 123 xtal2 122 v dd 121 120 119 118 117 p1h.4/a12/cc24io 116 115 114 p1h.0/a8 113 112 111 v dd 110 109 108 107 106 105 104 p1l.0/a0 103 102 101 100 99 p0h.4/ad12 98 p0h.2/ad10 97 c161cs/jc/ji v dd p6.1/cs1 p6.2/cs2 p6.3/cs3 p6.4/cs4 p6.5/hold p6.6/hlda p6.7/breq p7.4/cc28io/* p7.5/cc29io/* p7.6/cc30io/* p7.7/cc31io/* v dd p9.1/scl0 p9.2/sda1 p9.3/scl1 p9.4/sda2 v ss v dd p5.1/an1 p5.3/an3 p5.4/an4 p5.5/an5 p5.7/an7 v agnd p5.13/an13/t5in p5.14/an14/t4eud p5.15/an15/t2eud v dd p2.9/cc9io/ex1in p2.10/cc10io/ex2in p2.11/cc11io/ex3in p2.12/cc12io/ex4in p2.13/cc13io/ex5in p2.14/cc14io/ex6in p2.15/cc15io/ex7int7in v dd p3.1/t6out/rxd1 v ss p4.2/a18 p4.3/a19 p4.4/a20/* p4.5/a21/* p4.6/a22/* p4.7/a23/* v ss p0l.1/ad1 p0l.2/ad2 p0l.3/ad3 p0l.4/ad4 p0l.5/ad5 p0l.6/ad6 p0l.7/ad7 v ss p0h.3/ad11 p0h.5/ad13 p0h.6/ad14 p0h.7/ad15 p1l.1/a1 p1l.2/a2 p1l.3/a3 p1l.4/a4 p1l.5/a5 p1l.6/a6 p1l.7/a7 v ss p1h.1/a9 p1h.2/a10 p1h.3/a11 p1h.5/a13/cc25io p1h.6/a14/cc26io p1h.7/a15/cc27io v ss v ss
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 5 v3.0, 2001-01 table 2 pin definitions and functions symbol pin no. input outp. function rst out 1 o internal reset indication output. this pin is set to a low level when the part is executing either a hardware-, a software- or a watchdog timer reset. rstout remains low until the einit (end of initialization) instruction is executed. nmi 2 i non-maskable interrupt input. a high to low transition at this pin causes the cpu to vector to the nmi trap routine. when the pwrdn (power down) instruction is executed, the nmi pin must be low in order to force the c161cs/jc/ji to go into power down mode. if nmi is high, when pwrdn is executed, the part will continue to run in normal mode. if not used, pin nmi should be pulled high externally. p6 p6.0 p6.1 p6.2 p6.3 p6.4 p6.5 p6.6 p6.7 5 6 7 8 9 10 11 12 io o o o o o i i/o o port 6 is an 8-bit bidirectional i/o port. it is bit-wise programmable for input or output via direction bits. for a pin configured as input, the output driver is put into high- impedance state. port 6 outputs can be configured as push/ pull or open drain drivers. the port 6 pins also serve for alternate functions: cs0 chip select 0 output cs1 chip select 1 output cs2 chip select 2 output cs3 chip select 3 output cs4 chip select 4 output hold external master hold request input hlda hold acknowledge output (master mode) or input (slave mode) breq bus request output
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 6 v3.0, 2001-01 p7 p7.4 p7.5 p7.6 p7.7 13 14 15 16 io i/o i i o i/o o o i i/o i i o i/o o o i port 7 is a 4-bit bidirectional i/o port. it is bit-wise programmable for input or output via direction bits. for a pin configured as input, the output driver is put into high- impedance state. port 7 outputs can be configured as push/ pull or open drain drivers. the input threshold of port 7 is selectable (ttl or special). port 7 pins provide inputs/ outputs for capcom2 and serial interface lines. 1) cc28io capcom2: cc28 capture inp./compare outp., can1_rxd can 1 receive data input, ( c161cs/jc ) can2_rxd can 2 receive data input, ( c161cs ) sdl_txd sdlm transmit data output ( c161jc/ji ) cc29io capcom2: cc29 capture inp./compare outp., can1_txd can 1 transmit data output, ( c161cs/jc ) can2_txd can 2 transmit data output, ( c161cs ) sdl_rxd sdlm receive data input ( c161jc/ji ) cc30io capcom2: cc30 capture inp./compare outp., can1_rxd can 1 receive data input, ( c161cs/jc ) can2_rxd can 2 receive data input, ( c161cs ) sdl_txd sdlm transmit data output ( c161jc/ji ) cc31io capcom2: cc31 capture inp./compare outp., can1_txd can 1 transmit data output, ( c161cs/jc ) can2_txd can 2 transmit data output, ( c161cs ) sdl_rxd sdlm receive data input ( c161jc/ji ) p9 p9.0 p9.1 p9.2 p9.3 p9.4 p9.5 19 20 21 22 23 24 io i/o i/o i/o i/o i/o C port 9 is a 6-bit bidirectional open drain i/o port (provide external pullup resistors if required). it is bit-wise programmable for input or output via direction bits. for a pin configured as input, the output driver is put into high- impedance state. the following port 9 pins also serve for alternate functions: sda0 iic bus data line 0 scl0 iic bus clock line 0 sda1 iic bus data line 1 scl1 iic bus clock line 1 sda2 iic bus data line 2 C note: port 9 pins can only tolerate positive overload currents (see table 9 ). table 2 pin definitions and functions (contd) symbol pin no. input outp. function
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 7 v3.0, 2001-01 p5 p5.0 p5.1 p5.2 p5.3 p5.4 p5.5 p5.6 p5.7 p5.12 p5.13 p5.14 p5.15 27 28 29 30 31 32 33 34 37 38 39 40 i i i i i i i i i i i i i port 5 is a 12-bit input-only port with schmitt-trigger char. the pins of port 5 also serve as analog input channels for the a/d converter, or they serve as timer inputs: an0 an1 an2 an3 an4 an5 an6 an7 an12, t6in gpt2 timer t6 count inp. an13, t5in gpt2 timer t5 count inp. an14, t4eud gpt1 timer t4 ext. up/down ctrl. inp. an15, t2eud gpt1 timer t5 ext. up/down ctrl. inp. table 2 pin definitions and functions (contd) symbol pin no. input outp. function
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 8 v3.0, 2001-01 p2 p2.8 p2.9 p2.10 p2.11 p2.12 p2.13 p2.14 p2.15 43 44 45 46 47 48 49 50 io i/o i i/o i i/o i i/o i i/o i i/o i i/o i i/o i i port 2 is an 8-bit bidirectional i/o port. it is bit-wise programmable for input or output via direction bits. for a pin configured as input, the output driver is put into high- impedance state. port 2 outputs can be configured as push/ pull or open drain drivers. the input threshold of port 2 is selectable (ttl or special). the following port 2 pins also serve for alternate functions: cc8io capcom1: cc8 capture inp./compare output, ex0in fast external interrupt 0 input cc9io capcom1: cc9 capture inp./compare output, ex1in fast external interrupt 1 input cc10io capcom1: cc10 capture inp./compare outp., ex2in fast external interrupt 2 input cc11io capcom1: cc11 capture inp./compare outp., ex3in fast external interrupt 3 input cc12io capcom1: cc12 capture inp./compare outp., ex4in fast external interrupt 4 input cc13io capcom1: cc13 capture inp./compare outp., ex5in fast external interrupt 5 input cc14io capcom1: cc14 capture inp./compare outp., ex6in fast external interrupt 6 input cc15io capcom1: cc15 capture inp./compare outp., ex7in fast external interrupt 7 input, t7in capcom2: timer t7 count input note: during sleep mode a spike filter on the exnin interrupt inputs suppresses input pulses < 10 ns. input pulses > 100 ns safely pass the filter. table 2 pin definitions and functions (contd) symbol pin no. input outp. function
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 9 v3.0, 2001-01 p3 p3.0 p3.1 p3.2 p3.3 p3.4 p3.5 p3.6 p3.7 p3.8 p3.9 p3.10 p3.11 p3.12 p3.13 p3.15 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 io i o o i/o i o i i i i i/o i/o o i/o o o i/o o o port 3 is a 15-bit bidirectional i/o port. it is bit-wise programmable for input or output via direction bits. for a pin configured as input, the output driver is put into high- impedance state. port 3 outputs can be configured as push/ pull or open drain drivers. the input threshold of port 3 is selectable (ttl or special). the following port 3 pins also serve for alternate functions: t0in capcom1 timer t0 count input, txd1 asc1 clock/data output (async./sync) t6out gpt2 timer t6 toggle latch output, rxd1 asc1 data input (async.) or inp./output (sync.) capin gpt2 register caprel capture input t3out gpt1 timer t3 toggle latch output t3eud gpt1 timer t3 external up/down control input t4in gpt1 timer t4 count/gate/reload/capture inp t3in gpt1 timer t3 count/gate input t2in gpt1 timer t2 count/gate/reload/capture inp mrst ssc master-receive/slave-transmit inp./outp. mtsr ssc master-transmit/slave-receive outp./inp. txd0 asc0 clock/data output (async./sync.) rxd0 asc0 data input (async.) or inp./outp. (sync.) bhe external memory high byte enable signal, wrh external memory high byte write strobe sclk ssc master clock output / slave clock input. clkout system clock output (= cpu clock) fout programmable frequency output table 2 pin definitions and functions (contd) symbol pin no. input outp. function
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 10 v3.0, 2001-01 p4 p4.0 p4.1 p4.2 p4.3 p4.4 p4.5 p4.6 p4.7 70 71 72 73 74 75 76 77 io o o o o o i i o i o o o i o i o i o port 4 is an 8-bit bidirectional i/o port. it is bit-wise programmable for input or output via direction bits. for a pin configured as input, the output driver is put into high- impedance state. the port 4 outputs can be configured as push/pull or open drain drivers. the input threshold of port 4 is selectable (ttl or special). port 4 can be used to output the segment address lines and for serial interface lines: 1) a16 least significant segment address line a17 segment address line a18 segment address line a19 segment address line a20 segment address line, can2_rxd can 2 receive data input, ( c161cs ) sdl_rxd sdlm receive data input ( c161jc/ji ) a21 segment address line, can1_rxd can 1 receive data input, ( c161cs/jc ) a22 segment address line, can1_txd can 1 transmit data output, ( c161cs/jc ) can2_txd can 2 transmit data output, ( c161cs ) sdl_rxd sdlm receive data input ( c161jc/ji ) a23 most significant segment address line, can1_rxd can 1 receive data input, ( c161cs/jc ) can2_txd can 2 transmit data output, ( c161cs ) can2_rxd can 2 receive data input, ( c161cs ) sdl_txd sdlm transmit data output ( c161jc/ji ) rd 80 o external memory read strobe. rd is activated for every external instruction or data read access. wr / wrl 81 o external memory write strobe. in wr -mode this pin is activated for every external data write access. in wrl -mode this pin is activated for low byte data write accesses on a 16-bit bus, and for every data write access on an 8-bit bus. see wrcfg in register syscon for mode selection. table 2 pin definitions and functions (contd) symbol pin no. input outp. function
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 11 v3.0, 2001-01 ready 82 i ready input. when the ready function is enabled, a high level at this pin during an external memory access will force the insertion of memory cycle time waitstates until the pin returns to a low level. an internal pullup device will hold this pin high when nothing is driving it. ale 83 o address latch enable output. can be used for latching the address into external memory or an address latch in the multiplexed bus modes. ea 84 i external access enable pin. a low level at this pin during and after reset forces the c161cs/jc/ji to begin instruction execution out of external memory. a high level forces execution out of the internal program memory. romless versions must have this pin tied to 0. port0 p0l.0-7 p0h.0-7 85- 92 95- 102 io port0 consists of the two 8-bit bidirectional i/o ports p0l and p0h. it is bit-wise programmable for input or output via direction bits. for a pin configured as input, the output driver is put into high-impedance state. in case of an external bus configuration, port0 serves as the address (a) and address/data (ad) bus in multiplexed bus modes and as the data (d) bus in demultiplexed bus modes. demultiplexed bus modes: data path width: 8-bit 16-bit p0l.0 C p0l.7: d0 C d7 d0 - d7 p0h.0 C p0h.7: i/o d8 - d15 multiplexed bus modes: data path width: 8-bit 16-bit p0l.0 C p0l.7: ad0 C ad7 ad0 - ad7 p0h.0 C p0h.7: a8 - a15 ad8 - ad15 note: at the end of an external reset (ea = 0) port0 also inputs the configuration values. table 2 pin definitions and functions (contd) symbol pin no. input outp. function
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 12 v3.0, 2001-01 port1 p1l.0-7 p1h.0-7 p1h.4 p1h.5 p1h.6 p1h.7 103- 110 113- 120 117 118 119 120 io i/o i/o i/o i/o port1 consists of the two 8-bit bidirectional i/o ports p1l and p1h. it is bit-wise programmable for input or output via direction bits. for a pin configured as input, the output driver is put into high-impedance state. port1 is used as the 16-bit address bus (a) in demultiplexed bus modes and also after switching from a demultiplexed bus mode to a multiplexed bus mode. the following port1 pins also serve for alternate functions: cc24io capcom2: cc24 capture inp./compare outp. cc25io capcom2: cc25 capture inp./compare outp. cc26io capcom2: cc26 capture inp./compare outp. cc27io capcom2: cc27 capture inp./compare outp. xtal2 xtal1 123 124 o i xtal2: output of the oscillator amplifier circuit. xtal1: input to the oscillator amplifier and input to the internal clock generator to clock the device from an external source, drive xtal1, while leaving xtal2 unconnected. minimum and maximum high/low and rise/fall times specified in the ac characteristics must be observed. xtal3 xtal4 126 127 i o xtal3: input to the 32-khz oscillator amplifier and input to the internal clock generator xtal4: output of the oscillator amplifier circuit. to clock the device from an external source, drive xtal3, while leaving xtal4 unconnected. minimum and maximum high/low and rise/fall times specified in the ac characteristics must be observed. table 2 pin definitions and functions (contd) symbol pin no. input outp. function
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 13 v3.0, 2001-01 rstin 128 i/o reset input with schmitt-trigger characteristics. a low level at this pin while the oscillator is running resets the c161cs/ jc/ji. an internal pullup resistor permits power-on reset using only a capacitor connected to v ss . a spike filter suppresses input pulses < 10 ns. input pulses > 100 ns safely pass the filter. the minimum duration for a safe recognition should be 100 ns + 2 cpu clock cycles. in bidirectional reset mode (enabled by setting bit bdrsten in register syscon) the rstin line is internally pulled low for the duration of the internal reset sequence upon any reset (hw, sw, wdt). see note below this table. note: to let the reset configuration of port0 settle and to let the pll lock a reset duration of ca. 1 ms is recommended. v aref 35 C reference voltage for the a/d converter. v agnd 36 C reference ground for the a/d converter. v dd 4, 18, 26 2) , 42, 52, 68, 78, 93, 111, 121 C digital supply voltage: +5 v during normal operation and idle mode. 3 2.5 v during power down mode if rtc is off 3 2.7 v during power down mode if rtc is running v ss 3, 17, 25 2) , 41, 51, 69, 79, 94, 112, 122, 125 C digital ground. 1) the can and/or sdlm interface lines are assigned to ports p4 and p7 under software control. within the can module or sdlm several assignments can be selected. 2) supply pins 25 and 26 feed the analog/digital converter and should be decoupled separately. table 2 pin definitions and functions (contd) symbol pin no. input outp. function
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 14 v3.0, 2001-01 note: the following behavioural differences must be observed when the bidirectional reset is active: ? bit bdrsten in register syscon cannot be changed after einit and is cleared automatically after a reset. ? the reset indication flags always indicate a long hardware reset. ? the port0 configuration is treated as if it were a hardware reset. in particular, the bootstrap loader may be activated when p0l.4 is low. ?pin rstin may only be connected to external reset devices with an open drain output driver. ? a short hardware reset is extended to the duration of the internal reset sequence.
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 15 v3.0, 2001-01 functional description the architecture of the c161cs/jc/ji combines advantages of both risc and cisc processors and of advanced peripheral subsystems in a very well-balanced way. in addition the on-chip memory blocks allow the design of compact systems with maximum performance. the following block diagram gives an overview of the different on-chip components and of the advanced, high bandwidth internal bus structure of the c161cs/jc/ji. note: all time specifications refer to a cpu clock of 25 mhz (see definition in the ac characteristics section). figure 3 block diagram the program memory, the internal ram (iram) and the set of generic peripherals are connected to the cpu via separate buses. a fourth bus, the xbus, connects external resources as well as additional on-chip resoures, the x-peripherals (see figure 3 ). the xbus resources (xram, can, sdlm, iic, asc1) of the c161cs/jc/ji can be enabled during initialization by setting the general x-peripheral enable bit xpen (syscon.2). if the x-peripherals remain disabled they consume neither address space nor port pins. c166-core cpu port 2 interrupt bus xtal osc / pll rtc wdt 32 16 interrupt controller 16-level priority pec external instr. / data gpt t2 t3 t4 t5 t6 ssc brgen (spi) asc0 brgen (usart) adc 10-bit 12 channels ccom1 t0 t1 ccom2 t7 t8 ebc xbus control external bus control iram dual port internal ram 2 kbyte progmem rom 256 kbyte data data 16 16 16 can/sdlm 2.0b act. / cl.b instr. / data port 0 xram 8 kbyte port 6 8 8 port 1 16 12 16 port 5 port 3 15 port 7 4 port 9 6 port 4 8 peripheral data bus asc1 (usart) iic 400 kbd, 2 ch. 16 on-chip xbus (16-bit demux) mcb04323_1csr
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 16 v3.0, 2001-01 memory organization the memory space of the c161cs/jc/ji is configured in a von neumann architecture which means that code memory, data memory, registers and i/o ports are organized within the same linear address space which includes 16 mbytes. the entire memory space can be accessed bytewise or wordwise. particular portions of the on-chip memory have additionally been made directly bitaddressable. the c161cs/jc/ji incorporates 256 kbytes of on-chip mask-programmable rom for code or constant data. the lower 32 kbytes of the on-chip rom can be mapped either to segment 0 or segment 1. 2 kbytes of on-chip internal ram (iram) are provided as a storage for user defined variables, for the system stack, general purpose register banks and even for code. a register bank can consist of up to 16 wordwide (r0 to r15) and/or bytewide (rl0, rh0, , rl7, rh7) so-called general purpose registers (gprs). 1024 bytes (2 512 bytes) of the address space are reserved for the special function register areas (sfr space and esfr space). sfrs are wordwide registers which are used for controlling and monitoring functions of the different on-chip units. unused sfr addresses are reserved for future members of the c166 family. 8 kbytes of on-chip extension ram (xram) are provided to store user data, user stacks, or code. the xram is accessed like external memory and therefore cannot be used for the system stack or for register banks and is not bitaddressable. the xram permits 16-bit accesses with maximum speed. in order to meet the needs of designs where more memory is required than is provided on chip, up to 16 mbytes of external ram and/or rom can be connected to the microcontroller.
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 17 v3.0, 2001-01 external bus controller all of the external memory accesses are performed by a particular on-chip external bus controller (ebc). it can be programmed either to single chip mode when no external memory is required, or to one of four different external memory access modes, which are as follows: C 16-/18-/20-/24-bit addresses, 16-bit data, demultiplexed C 16-/18-/20-/24-bit addresses, 16-bit data, multiplexed C 16-/18-/20-/24-bit addresses, 8-bit data, multiplexed C 16-/18-/20-/24-bit addresses, 8-bit data, demultiplexed in the demultiplexed bus modes, addresses are output on port1 and data is input/ output on port0 or p0l, respectively. in the multiplexed bus modes both addresses and data use port0 for input/output. important timing characteristics of the external bus interface (memory cycle time, memory tri-state time, length of ale and read write delay) have been made programmable to allow the user the adaption of a wide range of different types of memories and external peripherals. in addition, up to 4 independent address windows may be defined (via register pairs addrselx / busconx) which control the access to different resources with different bus characteristics. these address windows are arranged hierarchically where buscon4 overrides buscon3 and buscon2 overrides buscon1. all accesses to locations not covered by these 4 address windows are controlled by buscon0. up to 5 external cs signals (4 windows plus default) can be generated in order to save external glue logic. the c161cs/jc/ji offers the possibility to switch the cs outputs to an unlatched mode. in this mode the internal filter logic is switched off and the cs signals are directly generated from the address. the unlatched cs mode is enabled by setting cscfg (syscon.6). access to very slow memories or memories with varying access times is supported via a particular ready function. a hold /hlda protocol is available for bus arbitration and allows to share external resources with other bus masters. the bus arbitration is enabled by setting bit hlden in register psw. after setting hlden once, pins p6.7 p6.5 (breq , hlda , hold ) are automatically controlled by the ebc. in master mode (default after reset) the hlda pin is an output. by setting bit dp6.7 to 1 the slave mode is selected where pin hlda is switched to input. this allows to directly connect the slave controller to another master controller without glue logic. for applications which require less than 16 mbytes of external memory space, this address space can be restricted to 1 mbyte, 256 kbyte, or to 64 kbyte. in this case port 4 outputs four, two, or no address lines at all. it outputs all 8 address lines, if an address space of 16 mbytes is used.
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 18 v3.0, 2001-01 note: when one or both of the on-chip can modules or the sdlm are used with the interface lines assigned to port 4, the interface lines override the segment address lines and the segment address output on port 4 is therefore limited to 6/4 bits i.e. address lines a21/a19 a16. cs lines can be used to increase the total amount of addressable external memory. central processing unit (cpu) the main core of the cpu consists of a 4-stage instruction pipeline, a 16-bit arithmetic and logic unit (alu) and dedicated sfrs. additional hardware has been spent for a separate multiply and divide unit, a bit-mask generator and a barrel shifter. based on these hardware provisions, most of the c161cs/jc/jis instructions can be executed in just one machine cycle which requires 80 ns at 25 mhz cpu clock. for example, shift and rotate instructions are always processed during one machine cycle independent of the number of bits to be shifted. all multiple-cycle instructions have been optimized so that they can be executed very fast as well: branches in 2 cycles, a 16 16 bit multiplication in 5 cycles and a 32-/16-bit division in 10 cycles. another pipeline optimization, the so-called jump cache, allows reducing the execution time of repeatedly performed jumps in a loop from 2 cycles to 1 cycle. figure 4 cpu block diagram mcb02147 cpu sp stkov stkun instr. reg. instr. ptr. exec. unit 4-stage pipeline mdh mdl psw syscon context ptr. mul/div-hw r15 r0 general purpose registers bit-mask gen barrel - shifter alu (16-bit) data page ptr. code seg. ptr. internal ram r15 r0 rom 16 16 32 buscon 0 buscon 1 buscon 2 buscon 3 buscon 4 addrsel 4 addrsel 3 addrsel 2 addrsel 1
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 19 v3.0, 2001-01 the cpu has a register context consisting of up to 16 wordwide gprs at its disposal. these 16 gprs are physically allocated within the on-chip ram area. a context pointer (cp) register determines the base address of the active register bank to be accessed by the cpu at any time. the number of register banks is only restricted by the available internal ram space. for easy parameter passing, a register bank may overlap others. a system stack of up to 1024 words is provided as a storage for temporary data. the system stack is allocated in the on-chip ram area, and it is accessed by the cpu via the stack pointer (sp) register. two separate sfrs, stkov and stkun, are implicitly compared against the stack pointer value upon each stack access for the detection of a stack overflow or underflow. the high performance offered by the hardware implementation of the cpu can efficiently be utilized by a programmer via the highly efficient c161cs/jc/ji instruction set which includes the following instruction classes: C arithmetic instructions C logical instructions C boolean bit manipulation instructions C compare and loop control instructions C shift and rotate instructions C prioritize instruction C data movement instructions C system stack instructions C jump and call instructions C return instructions C system control instructions C miscellaneous instructions the basic instruction length is either 2 or 4 bytes. possible operand types are bits, bytes and words. a variety of direct, indirect or immediate addressing modes are provided to specify the required operands.
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 20 v3.0, 2001-01 interrupt system with an interrupt response time within a range from just 5 to 12 cpu clocks (in case of internal program execution), the c161cs/jc/ji is capable of reacting very fast to the occurrence of non-deterministic events. the architecture of the c161cs/jc/ji supports several mechanisms for fast and flexible response to service requests that can be generated from various sources internal or external to the microcontroller. any of these interrupt requests can be programmed to being serviced by the interrupt controller or by the peripheral event controller (pec). in contrast to a standard interrupt service where the current program execution is suspended and a branch to the interrupt vector table is performed, just one cycle is stolen from the current cpu activity to perform a pec service. a pec service implies a single byte or word data transfer between any two memory locations with an additional increment of either the pec source or the destination pointer. an individual pec transfer counter is implicity decremented for each pec service except when performing in the continuous transfer mode. when this counter reaches zero, a standard interrupt is performed to the corresponding source related vector location. pec services are very well suited, for example, for supporting the transmission or reception of blocks of data. the c161cs/jc/ji has 8 pec channels each of which offers such fast interrupt-driven data transfer capabilities. a separate control register which contains an interrupt request flag, an interrupt enable flag and an interrupt priority bitfield exists for each of the possible interrupt sources. via its related register, each source can be programmed to one of sixteen interrupt priority levels. once having been accepted by the cpu, an interrupt service can only be interrupted by a higher prioritized service request. for the standard interrupt processing, each of the possible interrupt sources has a dedicated vector location. fast external interrupt inputs are provided to service external interrupts with high precision requirements. these fast interrupt inputs feature programmable edge detection (rising edge, falling edge or both edges). software interrupts are supported by means of the trap instruction in combination with an individual trap (interrupt) number. table 3 shows all of the possible c161cs/jc/ji interrupt sources and the corresponding hardware-related interrupt flags, vectors, vector locations and trap (interrupt) numbers. note: interrupt nodes which are not used by associated peripherals, may be used to generate software controlled interrupt requests by setting the respective interrupt request bit (xir).
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 21 v3.0, 2001-01 table 3 c161cs/jc/ji interrupt nodes source of interrupt or pec service request request flag enable flag interrupt vector vector location trap number capcom register 0 cc0ir cc0ie cc0int 000040 h 10 h capcom register 1 cc1ir cc1ie cc1int 000044 h 11 h capcom register 2 cc2ir cc2ie cc2int 000048 h 12 h capcom register 3 cc3ir cc3ie cc3int 00004c h 13 h capcom register 4 cc4ir cc4ie cc4int 000050 h 14 h capcom register 5 cc5ir cc5ie cc5int 000054 h 15 h capcom register 6 cc6ir cc6ie cc6int 000058 h 16 h capcom register 7 cc7ir cc7ie cc7int 00005c h 17 h capcom register 8 cc8ir cc8ie cc8int 000060 h 18 h capcom register 9 cc9ir cc9ie cc9int 000064 h 19 h capcom register 10 cc10ir cc10ie cc10int 000068 h 1a h capcom register 11 cc11ir cc11ie cc11int 00006c h 1b h capcom register 12 cc12ir cc12ie cc12int 000070 h 1c h capcom register 13 cc13ir cc13ie cc13int 000074 h 1d h capcom register 14 cc14ir cc14ie cc14int 000078 h 1e h capcom register 15 cc15ir cc15ie cc15int 00007c h 1f h capcom register 16 cc16ir cc16ie cc16int 0000c0 h 30 h capcom register 17 cc17ir cc17ie cc17int 0000c4 h 31 h capcom register 18 cc18ir cc18ie cc18int 0000c8 h 32 h capcom register 19 cc19ir cc19ie cc19int 0000cc h 33 h capcom register 20 cc20ir cc20ie cc20int 0000d0 h 34 h capcom register 21 cc21ir cc21ie cc21int 0000d4 h 35 h capcom register 22 cc22ir cc22ie cc22int 0000d8 h 36 h capcom register 23 cc23ir cc23ie cc23int 0000dc h 37 h capcom register 24 cc24ir cc24ie cc24int 0000e0 h 38 h capcom register 25 cc25ir cc25ie cc25int 0000e4 h 39 h capcom register 26 cc26ir cc26ie cc26int 0000e8 h 3a h capcom register 27 cc27ir cc27ie cc27int 0000ec h 3b h capcom register 28 cc28ir cc28ie cc28int 0000e0 h 3c h capcom register 29 cc29ir cc29ie cc29int 000110 h 44 h
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 22 v3.0, 2001-01 capcom register 30 cc30ir cc30ie cc30int 000114 h 45 h capcom register 31 cc31ir cc31ie cc31int 000118 h 46 h capcom timer 0 t0ir t0ie t0int 000080 h 20 h capcom timer 1 t1ir t1ie t1int 000084 h 21 h capcom timer 7 t7ir t7ie t7int 0000f4 h 3d h capcom timer 8 t8ir t8ie t8int 0000f8 h 3e h gpt1 timer 2 t2ir t2ie t2int 000088 h 22 h gpt1 timer 3 t3ir t3ie t3int 00008c h 23 h gpt1 timer 4 t4ir t4ie t4int 000090 h 24 h gpt2 timer 5 t5ir t5ie t5int 000094 h 25 h gpt2 timer 6 t6ir t6ie t6int 000098 h 26 h gpt2 caprel reg. crir crie crint 00009c h 27 h a/d conversion compl. adcir adcie adcint 0000a0 h 28 h a/d overrun error adeir adeie adeint 0000a4 h 29 h asc0 transmit s0tir s0tie s0tint 0000a8 h 2a h asc0 transmit buffer s0tbir s0tbie s0tbint 00011c h 47 h asc0 receive s0rir s0rie s0rint 0000ac h 2b h asc0 error s0eir s0eie s0eint 0000b0 h 2c h ssc transmit sctir sctie sctint 0000b4 h 2d h ssc receive scrir scrie scrint 0000b8 h 2e h ssc error sceir sceie sceint 0000bc h 2f h iic data transfer event xp0ir xp0ie xp0int 000100 h 40 h iic protocol event xp1ir xp1ie xp1int 000104 h 41 h can1 ( c161cs/jc ) xp2ir xp2ie xp2int 000108 h 42 h pll/owd and rtc xp3ir xp3ie xp3int 00010c h 43 h asc1 transmit xp4ir xp4ie xp4int 000120 h 48 h asc1 receive xp5ir xp5ie xp5int 000124 h 49 h asc1 error xp6ir xp6ie xp6int 000128 h 4a h can2 ( c161cs ) or sdlm ( c161jc/ji ) xp7ir xp7ie xp7int 00012c h 4b h table 3 c161cs/jc/ji interrupt nodes (contd) source of interrupt or pec service request request flag enable flag interrupt vector vector location trap number
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 23 v3.0, 2001-01 the c161cs/jc/ji also provides an excellent mechanism to identify and to process exceptions or error conditions that arise during run-time, so-called hardware traps. hardware traps cause immediate non-maskable system reaction which is similar to a standard interrupt service (branching to a dedicated vector table location). the occurence of a hardware trap is additionally signified by an individual bit in the trap flag register (tfr). except when another higher prioritized trap service is in progress, a hardware trap will interrupt any actual program execution. in turn, hardware trap services can normally not be interrupted by standard or pec interrupts. table 4 shows all of the possible exceptions or error conditions that can arise during run- time: table 4 hardware trap summary exception condition trap flag trap vector vector location trap number trap priority reset functions: hardware reset software reset w-dog timer overflow C reset reset reset 000000 h 000000 h 000000 h 00 h 00 h 00 h iii iii iii class a hardware traps: non-maskable interrupt stack overflow stack underflow nmi stkof stkuf nmitrap stotrap stutrap 000008 h 000010 h 000018 h 02 h 04 h 06 h ii ii ii class b hardware traps: undefined opcode protected instruction fault illegal word operand access illegal instruction access illegal external bus access undopc prtflt illopa illina illbus btrap btrap btrap btrap btrap 000028 h 000028 h 000028 h 000028 h 000028 h 0a h 0a h 0a h 0a h 0a h i i i i i reserved C C [2c h C 3c h ] [0b h C 0f h ] C software traps trap instruction C C any [000000 h C 0001fc h ] in steps of 4 h any [00 h C 7f h ] current cpu priority
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 24 v3.0, 2001-01 capture/compare (capcom) units the capcom units support generation and control of timing sequences on up to 32 channels with a maximum resolution of 16 tcl. the capcom units are typically used to handle high speed i/o tasks such as pulse and waveform generation, pulse width modulation (pmw), digital to analog (d/a) conversion, software timing, or time recording relative to external events. four 16-bit timers (t0/t1, t7/t8) with reload registers provide two independent time bases for the capture/compare register array. the input clock for the timers is programmable to several prescaled values of the internal system clock, or may be derived from an overflow/underflow of timer t6 in module gpt2. this provides a wide range of variation for the timer period and resolution and allows precise adjustments to the application specific requirements. in addition, external count inputs for capcom timers t0 and t7 allow event scheduling for the capture/ compare registers relative to external events. both of the two capture/compare register arrays contain 16 dual purpose capture/ compare registers, each of which may be individually allocated to either capcom timer t0 or t1 (t7 or t8, respectively), and programmed for capture or compare function. eight registers of each module have one port pin associated with it which serves as an input pin for triggering the capture function, or as an output pin to indicate the occurrence of a compare event. when a capture/compare register has been selected for capture mode, the current contents of the allocated timer will be latched (captured) into the capture/compare register in response to an external event at the port pin which is associated with this register. in addition, a specific interrupt request for this capture/compare register is generated. either a positive, a negative, or both a positive and a negative external signal transition at the pin can be selected as the triggering event. the contents of all registers which have been selected for one of the five compare modes are continuously compared with the contents of the allocated timers. table 5 compare modes (capcom) compare modes function mode 0 interrupt-only compare mode; several compare interrupts per timer period are possible mode 1 pin toggles on each compare match; several compare events per timer period are possible mode 2 interrupt-only compare mode; only one compare interrupt per timer period is generated mode 3 pin set 1 on match; pin reset 0 on compare time overflow; only one compare event per timer period is generated
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 25 v3.0, 2001-01 when a match occurs between the timer value and the value in a capture/compare register, specific actions will be taken based on the selected compare mode. figure 5 capcom unit block diagram mcb02143c mode control (capture or compare) 2 n : 1 f cpu tx input control capcom timer tx ty input control txin interrupt request gpt2 timer t6 over/underflow 2 n : 1 f cpu gpt2 timer t6 over/underflow ccxio ccxio 8 capture inputs 8 compare outputs reload reg. txrel capcom timer ty reload reg. tyrel interrupt request 16 capture/compare interrupt request 16-bit capture/ compare registers x=0, 7 y=1, 8 n=3 10
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 26 v3.0, 2001-01 general purpose timer (gpt) unit the gpt unit represents a very flexible multifunctional timer/counter structure which may be used for many different time related tasks such as event timing and counting, pulse width and duty cycle measurements, pulse generation, or pulse multiplication. the gpt unit incorporates five 16-bit timers which are organized in two separate modules, gpt1 and gpt2. each timer in each module may operate independently in a number of different modes, or may be concatenated with another timer of the same module. each of the three timers t2, t3, t4 of module gpt1 can be configured individually for one of four basic modes of operation, which are timer, gated timer, counter, and incremental interface mode. in timer mode, the input clock for a timer is derived from the cpu clock, divided by a programmable prescaler, while counter mode allows a timer to be clocked in reference to external events. pulse width or duty cycle measurement is supported in gated timer mode, where the operation of a timer is controlled by the gate level on an external input pin. for these purposes, each timer has one associated port pin (txin) which serves as gate or clock input. the maximum resolution of the timers in module gpt1 is 16 tcl. the count direction (up/down) for each timer is programmable by software or may additionally be altered dynamically by an external signal on a port pin (txeud) to facilitate e.g. position tracking. in incremental interface mode the gpt1 timers (t2, t3, t4) can be directly connected to the incremental position sensor signals a and b via their respective inputs txin and txeud. direction and count signals are internally derived from these two input signals, so the contents of the respective timer tx corresponds to the sensor position. the third position sensor signal top0 can be connected to an interrupt input. timer t3 has an output toggle latch (t3otl) which changes its state on each timer over- flow/underflow. the state of this latch may be output on pin t3out e.g. for time out monitoring of external hardware components, or may be used internally to clock timers t2 and t4 for measuring long time periods with high resolution. in addition to their basic operating modes, timers t2 and t4 may be configured as reload or capture registers for timer t3. when used as capture or reload registers, timers t2 and t4 are stopped. the contents of timer t3 is captured into t2 or t4 in response to a signal at their associated input pins (txin). timer t3 is reloaded with the contents of t2 or t4 triggered either by an external signal or by a selectable state transition of its toggle latch t3otl. when both t2 and t4 are configured to alternately reload t3 on opposite state transitions of t3otl with the low and high times of a pwm signal, this signal can be constantly generated without software intervention.
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 27 v3.0, 2001-01 figure 6 block diagram of gpt1 with its maximum resolution of 8 tcl, the gpt2 module provides precise event control and time measurement. it includes two timers (t5, t6) and a capture/reload register (caprel). both timers can be clocked with an input clock which is derived from the cpu clock via a programmable prescaler or with external signals. the count direction (up/ down) for each timer is programmable by software or may additionally be altered dynamically by an external signal on a port pin (txeud). concatenation of the timers is supported via the output toggle latch (t6otl) of timer t6, which changes its state on each timer overflow/underflow. the state of this latch may be used to clock timer t5, and/or it may be output on pin t6out. the overflows/underflows of timer t6 can additionally be used to clock the capcom timers t0 or t1, and to cause a reload from the caprel register. the caprel register may capture the contents of timer t5 based on an external signal transition on the corresponding port pin (capin), and timer t5 may optionally be cleared t3 mode control 2 n : 1 f cpu 2 n : 1 f cpu t2 mode control gpt1 timer t2 reload capture 2 n : 1 f cpu t4 mode control gpt1 timer t4 reload capture gpt1 timer t3 t3otl u/d t2eud t2in t3in t3eud t4in t4eud t3out toggle ff u/d u/d interrupt request (t2ir) interrupt request (t3ir) interrupt request (t4ir) mct04825 n = 3 10
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 28 v3.0, 2001-01 after the capture procedure. this allows the c161cs/jc/ji to measure absolute time differences or to perform pulse multiplication without software overhead. the capture trigger (timer t5 to caprel) may also be generated upon transitions of gpt1 timer t3s inputs t3in and/or t3eud. this is especially advantageous when t3 operates in incremental interface mode. figure 7 block diagram of gpt2 n = 2 9 mux 2 n : 1 f cpu t5 mode control gpt2 timer t5 2 n : 1 f cpu t6 mode control gpt2 timer t6 gpt2 caprel t6otl t5in t3 capin t6in t6out u/d u/d interrupt request (t5ir) interrupt request (crir) interrupt request (t6ir) to auxiliary timers clear capture ct3 mcb03999b.vsd to other modules
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 29 v3.0, 2001-01 real time clock the real time clock (rtc) module of the c161cs/jc/ji consists of a chain of 3 divider blocks, a fixed 8:1 divider, the reloadable 16-bit timer t14, and the 32-bit rtc timer (accessible via registers rtch and rtcl). the rtc module is directly clocked via a separate clock driver with the on-chip main oscillator frequency divided by 32 ( f rtc = f oscm / 32) or with the on-chip auxiliary oscillator frequency ( f rtc = f osca ). it is therefore independent from the selected clock generation mode of the c161cs/jc/ji. all timers count up. the rtc module can be used for different purposes: ? system clock to determine the current time and date ? cyclic time based interrupt ? 48-bit timer for long term measurements figure 8 rtc block diagram note: the registers associated with the rtc are not affected by a reset in order to maintain the correct system time even when intermediate resets are executed. mcd04432 t14rel t14 8:1 rtc f rtcl rtch interrupt request reload
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 30 v3.0, 2001-01 a/d converter for analog signal measurement, a 10-bit a/d converter with 12 multiplexed input channels and a sample and hold circuit has been integrated on-chip. it uses the method of successive approximation. the sample time (for loading the capacitors) and the conversion time is programmable and can so be adjusted to the external circuitry. overrun error detection/protection is provided for the conversion result register (addat): either an interrupt request will be generated when the result of a previous conversion has not been read from the result register at the time the next conversion is complete, or the next conversion is suspended in such a case until the previous result has been read. for applications which require less than 12 analog input channels, the remaining channel inputs can be used as digital input port pins. the a/d converter of the c161cs/jc/ji supports four different conversion modes. in the standard single channel conversion mode, the analog level on a specified channel is sampled once and converted to a digital result. in the single channel continuous mode, the analog level on a specified channel is repeatedly sampled and converted without software intervention. in the auto scan mode, the analog levels on a prespecified number of channels (standard or extension) are sequentially sampled and converted. in the auto scan continuous mode, the number of prespecified channels is repeatedly sampled and converted. in addition, the conversion of a specific channel can be inserted (injected) into a running sequence without disturbing this sequence. this is called channel injection mode. the peripheral event controller (pec) may be used to automatically store the conversion results into a table in memory for later evaluation, without requiring the overhead of entering and exiting interrupt routines for each data transfer. after each reset and also during normal operation the adc automatically performs calibration cycles. this automatic self-calibration constantly adjusts the converter to changing operating conditions (e.g. temperature) and compensates process variations. these calibration cycles are part of the conversion cycle, so they do not affect the normal operation of the a/d converter. in order to decouple analog inputs from digital noise and to avoid input trigger noise those pins used for analog input can be disconnected from the digital io or input stages under software control. this can be selected for each pin separately via register p5didis (port 5 digital input disable).
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 31 v3.0, 2001-01 serial channels serial communication with other microcontrollers, processors, terminals or external peripheral components is provided by three serial interfaces with different functionality, two asynchronous/synchronous serial channels ( asc0 / asc1 ) and a high-speed synchronous serial channel ( ssc ). the asc0 is upward compatible with the serial ports of the infineon 8-bit microcontroller families and supports full-duplex asynchronous communication at up to 781 kbaud and half-duplex synchronous communication at up to 3.1 mbaud (@ 25 mhz cpu clock). a dedicated baud rate generator allows to set up all standard baud rates without oscillator tuning. for transmission, reception and error handling 4 separate interrupt vectors are provided. in asynchronous mode, 8- or 9-bit data frames are transmitted or received, preceded by a start bit and terminated by one or two stop bits. for multiprocessor communication, a mechanism to distinguish address from data bytes has been included (8-bit data plus wake up bit mode). in synchronous mode, the asc0 transmits or receives bytes (8 bits) synchronously to a shift clock which is generated by the asc0. the asc0 always shifts the lsb first. a loop back option is available for testing purposes. a number of optional hardware error detection capabilities has been included to increase the reliability of data transfers. a parity bit can automatically be generated on transmission or be checked on reception. framing error detection allows to recognize data frames with missing stop bits. an overrun error will be generated, if the last character received has not been read out of the receive buffer register at the time the reception of a new character is complete. the asc1 is function compatible with the asc0, except that its registers are not bit- addressable (xbus peripheral) and it provides only three interrupt vectors. the ssc supports full-duplex synchronous communication at up to 6.25 mbaud (@ 25 mhz cpu clock). it may be configured so it interfaces with serially linked peripheral components. a dedicated baud rate generator allows to set up all standard baud rates without oscillator tuning. for transmission, reception and error handling three separate interrupt vectors are provided. the ssc transmits or receives characters of 2 16 bits length synchronously to a shift clock which can be generated by the ssc (master mode) or by an external master (slave mode). the ssc can start shifting with the lsb or with the msb and allows the selection of shifting and latching clock edges as well as the clock polarity. a number of optional hardware error detection capabilities has been included to increase the reliability of data transfers. transmit and receive error supervise the correct handling of the data buffer. phase and baudrate error detect incorrect serial data.
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 32 v3.0, 2001-01 serial data link module (sdlm) the serial data link module (sdlm) provides serial communication via a j1850 type multiplexed serial bus via an external j1850 bus transceiver. the module conforms to the sae class b j1850 specification for variable pulse width modulation (vpw). the sdlm is integrated as an on-chip peripheral and is connected to the cpu via the xbus. general sdlm features: ? compliant to the sae class b j1850 specification (vpw) ? class 2 protocol fully supported ? variable pulse width (vpw) operation at 10.4 kbaud ? high speed 4x operation at 41.6 kbaud ? programmable normalization bit ? programmable delay for transceiver interface ? digital noise filter ? power down mode with automatic wakeup support upon bus activity ? single byte header and consolidated header supported ? crc generation and checking ? receive and transmit block mode data link operation features: ? 11 byte transmit buffer ? double buffered 11 byte receive buffer (optional overwrite enable) ? support for in frame response (ifr) types 1, 2 and 3 ? transmit and receiver message buffers configurable for either fifo or byte mode ? advanced interrupt handling with 8 separately enabled sources: error, format or bus shorted crc error lost arbitration break received in-frame-response request header received complete message received transmit successful ? automatic ifr transmission (types 1 and 2) for 3-byte consolidated headers ? user configurable clock divider ? bus status flags (idle, eof, eod, sof, tx and rx in progress) note: when the sdlm is used with the interface lines assigned to port 4, the interface lines override the segment address lines and the segment address output on port 4 is therefore limited to 6/4 bits i.e. address lines a21/a19 a16. cs lines can be used to increase the total amount of addressable external memory.
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 33 v3.0, 2001-01 can-modules the integrated can-modules handle the completely autonomous transmission and reception of can frames in accordance with the can specification v2.0 part b (active), i.e. the on-chip can-modules can receive and transmit standard frames with 11-bit identifiers as well as extended frames with 29-bit identifiers. the modules provide full can functionality on up to 15 message objects each. message object 15 may be configured for basic can functionality. both modes provide separate masks for acceptance filtering which allows to accept a number of identifiers in full can mode and also allows to disregard a number of identifiers in basic can mode. all message objects can be updated independent from the other objects and are equipped for the maximum message length of 8 bytes. the bit timing is derived from the xclk and is programmable up to a data rate of 1 mbaud. each can-module uses two pins of port 4 or port 8 to interface to an external bus transceiver. the interface pins are assigned via software. module can2 (c161cs only) is identical with the first one, except that it uses a separate address area and a separate interrupt node. the two can modules can be internally coupled by assigning their interface pins to the same two port pins, or they can interface to separate can buses. note: when one or both of the on-chip can modules are used with the interface lines assigned to port 4, the interface lines override the segment address lines and the segment address output on port 4 is therefore limited to 6/4 bits i.e. address lines a21/a19 a16. cs lines can be used to increase the total amount of addressable external memory. iic module the integrated iic bus module handles the transmission and reception of frames over the two-line iic bus in accordance with the iic bus specification. the on-chip iic module can receive and transmit data using 7-bit or 10-bit addressing and it can operate in slave mode, in master mode or in multi-master mode. several physical interfaces (port pins) can be established under software control. data can be transferred at speeds up to 400 kbit/sec. two interrupt nodes dedicated to the iic module allow efficient interrupt service and also support operation via pec transfers. note: the port pins associated with the iic interfaces feature open drain drivers only, as required by the iic specification.
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 34 v3.0, 2001-01 parallel ports the c161cs/jc/ji provides up to 93 i/o lines which are organized into eight input/output ports and one input port. all port lines are bit-addressable, and all input/output lines are individually (bit-wise) programmable as inputs or outputs via direction registers. the i/o ports are true bidirectional ports which are switched to high impedance state when configured as inputs. the output drivers of five i/o ports can be configured (pin by pin) for push/pull operation or open-drain operation via control registers, port 9 provides open-drain-only drivers. during the internal reset, all port pins are configured as inputs. the input threshold of port 2, port 3, port 4, port 6, and port 7 is selectable (ttl or cmos like), where the special cmos like input threshold reduces noise sensitivity due to the input hysteresis. the input threshold may be selected individually for each byte of the respective ports. all port lines have programmable alternate input or output functions associated with them. all port lines that are not used for these alternate functions may be used as general purpose io lines. port0 and port1 may be used as address and data lines when accessing external memory, while port 4 outputs the additional segment address bits a23/19/17 a16 in systems where segmentation is enabled to access more than 64 kbytes of memory. port 2, port 7, and parts of port1 are associated with the capture inputs or compare outputs of the capcom units. port 6 provides optional bus arbitration signals (breq , hlda , hold ) and chip select signals. port 3 includes alternate functions of timers, serial interfaces, the optional bus control signal bhe , and the system clock output clkout (or the programmable frequency output fout). port 5 is used for the analog input channels to the a/d converter or timer control signals. the edge characteristics (transition time) and driver characteristics (output current) of the c161cs/jc/jis port drivers can be selected via the port output control registers (poconx).
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 35 v3.0, 2001-01 watchdog timer the watchdog timer represents one of the fail-safe mechanisms which have been implemented to prevent the controller from malfunctioning for longer periods of time. the watchdog timer is always enabled after a reset of the chip, and can only be disabled in the time interval until the einit (end of initialization) instruction has been executed. thus, the chips start-up procedure is always monitored. the software has to be designed to service the watchdog timer before it overflows. if, due to hardware or software related failures, the software fails to do so, the watchdog timer overflows and generates an internal hardware reset and pulls the rstout pin low in order to allow external hardware components to be reset. the watchdog timer is a 16-bit timer, clocked with the system clock divided by 2/4/128/ 256. the high byte of the watchdog timer register can be set to a prespecified reload value (stored in wdtrel) in order to allow further variation of the monitored time interval. each time it is serviced by the application software, the high byte of the watchdog timer is reloaded. thus, time intervals between 20 m s and 671 ms can be monitored (@ 25 mhz). the default watchdog timer interval after reset is 5.24 ms (@ 25 mhz). oscillator watchdog the oscillator watchdog (owd) monitors the clock signal generated by the on-chip oscillator (either with a crystal or via external clock drive). for this operation the pll provides a clock signal which is used to supervise transitions on the oscillator clock. this pll clock is independent from the xtal1 clock. when the expected oscillator clock transitions are missing the owd activates the pll unlock / owd interrupt node and supplies the cpu with the pll clock signal. under these circumstances the pll will oscillate with its basic frequency. in direct drive mode the pll base frequency is used directly ( f cpu = 2 5 mhz). in prescaler mode the pll base frequency is divided by 2 ( f cpu = 1 2.5 mhz). note: the cpu clock source is only switched back to the oscillator clock after a hardware reset. the oscillator watchdog can be disabled by setting bit owddis in register syscon. in this case (owddis = 1) the pll remains idle and provides no clock signal, while the cpu clock signal is derived directly from the oscillator clock or via prescaler or sdd. also no interrupt request will be generated in case of a missing oscillator clock. note: at the end of an external reset (ea = 0) bit owddis reflects the inverted level of pin rd at that time. thus the oscillator watchdog may also be disabled via hardware by (externally) pulling the rd line low upon a reset, similar to the standard reset configuration via port0. at the end of an internal reset (ea = 1) bit owddis is cleared.
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 36 v3.0, 2001-01 power management the c161cs/jc/ji provides several means to control the power it consumes either at a given time or averaged over a certain timespan. three mechanisms can be used (partly in parallel): ? power saving modes switch the c161cs/jc/ji into a special operating mode (control via instructions). idle mode stops the cpu while the peripherals can continue to operate. sleep mode and power down mode stop all clock signals and all operation (rtc may optionally continue running). sleep mode can be terminated by external interrupt signals. ? clock generation management controls the distribution and the frequency of internal and external clock signals (control via register syscon2). slow down mode lets the c161cs/jc/ji run at a cpu clock frequency of f osc / 1 32 (half for prescaler operation) which drastically reduces the consumed power. the pll can be optionally disabled while operating in slow down mode. external circuitry can be controlled via the programmable frequency output fout. ? peripheral management permits temporary disabling of peripheral modules (control via register syscon3). each peripheral can separately be disabled/enabled. a group control option disables a major part of the peripheral set by setting one single bit. the on-chip rtc supports intermittend operation of the c161cs/jc/ji by generating cyclic wakeup signals. this offers full performance to quickly react on action requests while the intermittend sleep phases greatly reduce the average power consumption of the system.
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 37 v3.0, 2001-01 instruction set summary table 6 lists the instructions of the c161cs/jc/ji in a condensed way. the various addressing modes that can be used with a specific instruction, the operation of the instructions, parameters for conditional execution of instructions, and the opcodes for each instruction can be found in the c166 family instruction set manual . this document also provides a detailled description of each instruction. table 6 instruction set summary mnemonic description bytes add(b) add word (byte) operands 2 / 4 addc(b) add word (byte) operands with carry 2 / 4 sub(b) subtract word (byte) operands 2 / 4 subc(b) subtract word (byte) operands with carry 2 / 4 mul(u) (un)signed multiply direct gpr by direct gpr (16-16-bit) 2 div(u) (un)signed divide register mdl by direct gpr (16-/16-bit) 2 divl(u) (un)signed long divide reg. md by direct gpr (32-/16-bit) 2 cpl(b) complement direct word (byte) gpr 2 neg(b) negate direct word (byte) gpr 2 and(b) bitwise and, (word/byte operands) 2 / 4 or(b) bitwise or, (word/byte operands) 2 / 4 xor(b) bitwise xor, (word/byte operands) 2 / 4 bclr clear direct bit 2 bset set direct bit 2 bmov(n) move (negated) direct bit to direct bit 4 band, bor, bxor and/or/xor direct bit with direct bit 4 bcmp compare direct bit to direct bit 4 bfldh/l bitwise modify masked high/low byte of bit-addressable direct word memory with immediate data 4 cmp(b) compare word (byte) operands 2 / 4 cmpd1/2 compare word data to gpr and decrement gpr by 1/2 2 / 4 cmpi1/2 compare word data to gpr and increment gpr by 1/2 2 / 4 prior determine number of shift cycles to normalize direct word gpr and store result in direct word gpr 2 shl / shr shift left/right direct word gpr 2 rol / ror rotate left/right direct word gpr 2 ashr arithmetic (sign bit) shift right direct word gpr 2
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 38 v3.0, 2001-01 mov(b) move word (byte) data 2 / 4 movbs move byte operand to word operand with sign extension 2 / 4 movbz move byte operand to word operand. with zero extension 2 / 4 jmpa, jmpi, jmpr jump absolute/indirect/relative if condition is met 4 jmps jump absolute to a code segment 4 j(n)b jump relative if direct bit is (not) set 4 jbc jump relative and clear bit if direct bit is set 4 jnbs jump relative and set bit if direct bit is not set 4 calla, calli, callr call absolute/indirect/relative subroutine if condition is met 4 calls call absolute subroutine in any code segment 4 pcall push direct word register onto system stack and call absolute subroutine 4 trap call interrupt service routine via immediate trap number 2 push, pop push/pop direct word register onto/from system stack 2 scxt push direct word register onto system stack and update register with word operand 4 ret return from intra-segment subroutine 2 rets return from inter-segment subroutine 2 retp return from intra-segment subroutine and pop direct word register from system stack 2 reti return from interrupt service subroutine 2 srst software reset 4 idle enter idle mode 4 pwrdn enter power down mode (supposes nmi -pin being low) 4 srvwdt service watchdog timer 4 diswdt disable watchdog timer 4 einit signify end-of-initialization on rstout-pin 4 atomic begin atomic sequence 2 extr begin extended register sequence 2 extp(r) begin extended page (and register) sequence 2 / 4 exts(r) begin extended segment (and register) sequence 2 / 4 nop null operation 2 table 6 instruction set summary (contd) mnemonic description bytes
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 39 v3.0, 2001-01 special function registers overview table 7 lists all sfrs which are implemented in the c161cs/jc/ji in alphabetical order. bit-addressable sfrs are marked with the letter b in column name. sfrs within the extended sfr-space (esfrs) are marked with the letter e in column physical address. registers within on-chip x-peripherals are marked with the letter x in column physical address. an sfr can be specified via its individual mnemonic name. depending on the selected addressing mode, an sfr can be accessed via its physical address (using the data page pointers), or via its short 8-bit address (without using the data page pointers). note: registers within device specific interface modules (can, sdlm) are only present in the corresponding device, of course. table 7 c161cs/jc/ji registers, ordered by name name physical address 8-bit addr. description reset value adcic b ff98 h cc h a/d converter end of conversion interrupt control register 0000 h adcon b ffa0 h d0 h a/d converter control register 0000 h addat fea0 h 50 h a/d converter result register 0000 h addat2 f0a0 h e 50 h a/d converter 2 result register 0000 h addrsel1 fe18 h 0c h address select register 1 0000 h addrsel2 fe1a h 0d h address select register 2 0000 h addrsel3 fe1c h 0e h address select register 3 0000 h addrsel4 fe1e h 0f h address select register 4 0000 h adeic b ff9a h cd h a/d converter overrun error interrupt control register 0000 h buffcon eb24 h x --- sdlm buffer control register 0000 h buffstat eb1c h x --- sdlm buffer status register 0000 h buscon0 b ff0c h 86 h bus configuration register 0 0000 h buscon1 b ff14 h 8a h bus configuration register 1 0000 h buscon2 b ff16 h 8b h bus configuration register 2 0000 h buscon3 b ff18 h 8c h bus configuration register 3 0000 h buscon4 b ff1a h 8d h bus configuration register 4 0000 h busstat eb20 h x --- sdlm bus status register 0000 h c1btr ef04 h x --- can1 bit timing register uuuu h c1csr ef00 h x --- can1 control / status register xx01 h c1gms ef06 h x --- can1 global mask short ufuu h
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 40 v3.0, 2001-01 c1pcir ef02 h x --- can1 port control / interrupt register xxxx h c1larn efn4 h x --- can1 lower arbitration reg. (msg. n ) uuuu h c1lgml ef0a h x --- can1 lower global mask long uuuu h c1lmlm ef0e h x --- can1 lower mask of last message uuuu h c1mcfgn efn6 h x --- can1 message config. reg. (msg. n )uu h c1mcrn efn0 h x --- can1 message control reg. (msg. n ) uuuu h c1uarn efn2 h x --- can1 upper arbitration reg. (msg. n ) uuuu h c1ugml ef08 h x --- can1 upper global mask long uuuu h c1umlm ef0c h x --- can1 upper mask of last message uuuu h c2btr ee04 h x --- can2 bit timing register uuuu h c2csr ee00 h x --- can2 control / status register xx01 h c2gms ee06 h x --- can2 global mask short ufuu h c2pcir ee02 h x --- can2 port control / interrupt register xxxx h c2larn een4 h x --- can2 lower arbitration reg. (msg. n ) uuuu h c2lgml ee0a h x --- can2 lower global mask long uuuu h c2lmlm ee0e h x --- can2 lower mask of last message uuuu h c2mcfgn een6 h x --- can2 message config. reg. (msg. n )uu h c2mcrn een0 h x --- can2 message control reg. (msg. n ) uuuu h c2uarn een2 h x --- can2 upper arbitration reg. (msg. n ) uuuu h c2ugml ee08 h x --- can2 upper global mask long uuuu h c2umlm ee0c h x --- can2 upper mask of last message uuuu h caprel fe4a h 25 h gpt2 capture/reload register 0000 h cc0 fe80 h 40 h capcom register 0 0000 h cc0ic b ff78 h bc h capcom register 0 interrupt ctrl. reg. 0000 h cc1 fe82 h 41 h capcom register 1 0000 h cc10 fe94 h 4a h capcom register 10 0000 h cc10ic b ff8c h c6 h capcom reg. 10 interrupt ctrl. reg. 0000 h cc11 fe96 h 4b h capcom register 11 0000 h cc11ic b ff8e h c7 h capcom reg. 11 interrupt ctrl. reg. 0000 h cc12 fe98 h 4c h capcom register 12 0000 h cc12ic b ff90 h c8 h capcom reg. 12 interrupt ctrl. reg. 0000 h cc13 fe9a h 4d h capcom register 13 0000 h table 7 c161cs/jc/ji registers, ordered by name (contd) name physical address 8-bit addr. description reset value
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 41 v3.0, 2001-01 cc13ic b ff92 h c9 h capcom reg. 13 interrupt ctrl. reg. 0000 h cc14 fe9c h 4e h capcom register 14 0000 h cc14ic b ff94 h ca h capcom reg. 14 interrupt ctrl. reg. 0000 h cc15 fe9e h 4f h capcom register 15 0000 h cc15ic b ff96 h cb h capcom reg. 15 interrupt ctrl. reg. 0000 h cc16 fe60 h 30 h capcom register 16 0000 h cc16ic b f160 h e b0 h capcom reg.16 interrupt ctrl. reg. 0000 h cc17 fe62 h 31 h capcom register 17 0000 h cc17ic b f162 h e b1 h capcom reg. 17 interrupt ctrl. reg. 0000 h cc18 fe64 h 32 h capcom register 18 0000 h cc18ic b f164 h e b2 h capcom reg. 18 interrupt ctrl. reg. 0000 h cc19 fe66 h 33 h capcom register 19 0000 h cc19ic b f166 h e b3 h capcom reg. 19 interrupt ctrl. reg. 0000 h cc1ic b ff7a h bd h capcom reg. 1 interrupt ctrl. reg. 0000 h cc2 fe84 h 42 h capcom register 2 0000 h cc20 fe68 h 34 h capcom register 20 0000 h cc20ic b f168 h e b4 h capcom reg. 20 interrupt ctrl. reg. 0000 h cc21 fe6a h 35 h capcom register 21 0000 h cc21ic b f16a h e b5 h capcom reg. 21 interrupt ctrl. reg. 0000 h cc22 fe6c h 36 h capcom register 22 0000 h cc22ic b f16c h e b6 h capcom reg. 22 interrupt ctrl. reg. 0000 h cc23 fe6e h 37 h capcom register 23 0000 h cc23ic b f16e h e b7 h capcom reg. 23 interrupt ctrl. reg. 0000 h cc24 fe70 h 38 h capcom register 24 0000 h cc24ic b f170 h e b8 h capcom reg. 24 interrupt ctrl. reg. 0000 h cc25 fe72 h 39 h capcom register 25 0000 h cc25ic b f172 h e b9 h capcom reg. 25 interrupt ctrl. reg. 0000 h cc26 fe74 h 3a h capcom register 26 0000 h cc26ic b f174 h e ba h capcom reg. 26 interrupt ctrl. reg. 0000 h cc27 fe76 h 3b h capcom register 27 0000 h cc27ic b f176 h e bb h capcom reg. 27 interrupt ctrl. reg. 0000 h cc28 fe78 h 3c h capcom register 28 0000 h table 7 c161cs/jc/ji registers, ordered by name (contd) name physical address 8-bit addr. description reset value
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 42 v3.0, 2001-01 cc28ic b f178 h e bc h capcom reg. 28 interrupt ctrl. reg. 0000 h cc29 fe7a h 3d h capcom register 29 0000 h cc29ic b f184 h e c2 h capcom reg. 29 interrupt ctrl. reg. 0000 h cc2ic b ff7c h be h capcom reg. 2 interrupt ctrl. reg. 0000 h cc3 fe86 h 43 h capcom register 3 0000 h cc30 fe7c h 3e h capcom register 30 0000 h cc30ic b f18c h e c6 h capcom reg. 30 interrupt ctrl. reg. 0000 h cc31 fe7e h 3f h capcom register 31 0000 h cc31ic b f194 h e ca h capcom reg. 31 interrupt ctrl. reg. 0000 h cc3ic b ff7e h bf h capcom reg. 3 interrupt ctrl. reg. 0000 h cc4 fe88 h 44 h capcom register 4 0000 h cc4ic b ff80 h c0 h capcom reg. 4 interrupt ctrl. reg. 0000 h cc5 fe8a h 45 h capcom register 5 0000 h cc5ic b ff82 h c1 h capcom reg. 5 interrupt ctrl. reg. 0000 h cc6 fe8c h 46 h capcom register 6 0000 h cc6ic b ff84 h c2 h capcom reg. 6 interrupt ctrl. reg. 0000 h cc7 fe8e h 47 h capcom register 7 0000 h cc7ic b ff86 h c3 h capcom reg. 7 interrupt ctrl. reg. 0000 h cc8 fe90 h 48 h capcom register 8 0000 h cc8ic b ff88 h c4 h capcom reg. 8 interrupt ctrl. reg. 0000 h cc9 fe92 h 49 h capcom register 9 0000 h cc9ic b ff8a h c5 h capcom reg. 9 interrupt ctrl. reg. 0000 h ccm0 b ff52 h a9 h capcom mode control register 0 0000 h ccm1 b ff54 h aa h capcom mode control register 1 0000 h ccm2 b ff56 h ab h capcom mode control register 2 0000 h ccm3 b ff58 h ac h capcom mode control register 3 0000 h ccm4 b ff22 h 91 h capcom mode control register 4 0000 h ccm5 b ff24 h 92 h capcom mode control register 5 0000 h ccm6 b ff26 h 93 h capcom mode control register 6 0000 h ccm7 b ff28 h 94 h capcom mode control register 7 0000 h clkdiv eb14 h x --- sdlm clock divider register 0000 h cp fe10 h 08 h cpu context pointer register fc00 h table 7 c161cs/jc/ji registers, ordered by name (contd) name physical address 8-bit addr. description reset value
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 43 v3.0, 2001-01 cric b ff6a h b5 h gpt2 caprel interrupt ctrl. reg. 0000 h csp fe08 h 04 h cpu code segment pointer register (8 bits, not directly writeable) 0000 h dp0h b f102 h e 81 h p0h direction control register 00 h dp0l b f100 h e 80 h p0l direction control register 00 h dp1h b f106 h e 83 h p1h direction control register 00 h dp1l b f104 h e 82 h p1l direction control register 00 h dp2 b ffc2 h e1 h port 2 direction control register 0000 h dp3 b ffc6 h e3 h port 3 direction control register 0000 h dp4 b ffca h e5 h port 4 direction control register 00 h dp6 b ffce h e7 h port 6 direction control register 00 h dp7 b ffd2 h e9 h port 7 direction control register 00 h dp9 b ffda h ed h port 9 direction control register 00 h dpp0 fe00 h 00 h cpu data page pointer 0 reg. (10 bits) 0000 h dpp1 fe02 h 01 h cpu data page pointer 1 reg. (10 bits) 0001 h dpp2 fe04 h 02 h cpu data page pointer 2 reg. (10 bits) 0002 h dpp3 fe06 h 03 h cpu data page pointer 3 reg. (10 bits) 0003 h errstat eb22 h x --- sdlm error status register 0000 h exicon b f1c0 h e e0 h external interrupt control register 0000 h exisel b f1da h e ed h external interrupt source select register 0000 h flagrst eb28 h x --- sdlm flag reset register 0000 h focon b ffaa h d5 h frequency output control register 0000 h globcon eb10 h x --- sdlm global control register 0000 h icadr ed06 h x --- iic address register 0xxx h iccfg ed00 h x --- iic configuration register xx00 h iccon ed02 h x --- iic control register 0000 h icrtb ed08 h x --- iic receive/transmit buffer xx h icst ed04 h x --- iic status register 0000 h idchip f07c h e 3e h identifier 1xxx h idmanuf f07e h e 3f h identifier 1820 h idmem f07a h e 3d h identifier x040 h table 7 c161cs/jc/ji registers, ordered by name (contd) name physical address 8-bit addr. description reset value
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 44 v3.0, 2001-01 idprog f078 h e 3c h identifier xxxx h ifr eb18 h x --- sdlm in-frame response register 0000 h intcon eb2c h x --- sdlm interrupt control register 0000 h ipcr eb04 h x --- sdlm interface port connect register 0007 h isnc f1de h e ef h interrupt subnode control register 0000 h mdc b ff0e h 87 h cpu multiply divide control register 0000 h mdh fe0c h 06 h cpu multiply divide reg. C high word 0000 h mdl fe0e h 07 h cpu multiply divide reg. C low word 0000 h odp2 b f1c2 h e e1 h port 2 open drain control register 0000 h odp3 b f1c6 h e e3 h port 3 open drain control register 0000 h odp4 b f1ca h e e5 h port 4 open drain control register 00 h odp6 b f1ce h e e7 h port 6 open drain control register 00 h odp7 b f1d2 h e e9 h port 7 open drain control register 00 h ones b ff1e h 8f h constant value 1s register (read only) ffff h p0h b ff02 h 81 h port 0 high reg. (upper half of port0) 00 h p0l b ff00 h 80 h port 0 low reg. (lower half of port0) 00 h p1h b ff06 h 83 h port 1 high reg. (upper half of port1) 00 h p1l b ff04 h 82 h port 1 low reg. (lower half of port1) 00 h p2 b ffc0 h e0 h port 2 register 0000 h p3 b ffc4 h e2 h port 3 register 0000 h p4 b ffc8 h e4 h port 4 register (7 bits) 00 h p5 b ffa2 h d1 h port 5 register (read only) xxxx h p6 b ffcc h e6 h port 6 register (8 bits) 00 h p7 b ffd0 h e8 h port 7 register (8 bits) 00 h p9 b ffd8 h ec h port 9 register (8 bits) 00 h pecc0 fec0 h 60 h pec channel 0 control register 0000 h pecc1 fec2 h 61 h pec channel 1 control register 0000 h pecc2 fec4 h 62 h pec channel 2 control register 0000 h pecc3 fec6 h 63 h pec channel 3 control register 0000 h pecc4 fec8 h 64 h pec channel 4 control register 0000 h pecc5 feca h 65 h pec channel 5 control register 0000 h pecc6 fecc h 66 h pec channel 6 control register 0000 h table 7 c161cs/jc/ji registers, ordered by name (contd) name physical address 8-bit addr. description reset value
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 45 v3.0, 2001-01 pecc7 fece h 67 h pec channel 7 control register 0000 h picon b f1c4 h e e2 h port input threshold control register 0000 h pocon0h f082 h e 41 h p0l output control register 0000 h pocon0l f080 h e 40 h p0h output control register 0000 h pocon1h f086 h e 43 h p1l output control register 0000 h pocon1l f084 h e 42 h p1h output control register 0000 h pocon2 f088 h e 44 h port 2 output control register 0000 h pocon20 f0aa h e 55 h dedicated pins output control register 0000 h pocon3 f08a h e 45 h port 3 output control register 0000 h pocon4 f08c h e 46 h port 4 output control register 0000 h pocon6 f08e h e 47 h port 6 output control register 0000 h pocon7 f090 h e 48 h port 7 output control register 0000 h psw b ff10 h 88 h cpu program status word 0000 h rp0h b f108 h e 84 h system startup configuration register (rd. only) xx h rstcon b f1e0 h m --- reset control register 00xx h rtch f0d6 h e 6b h rtc high register no rtcl f0d4 h e 6a h rtc low register no rxcnt eb4c h x --- sdlm bus receive byte counter (cpu) 0000 h rxcntb eb4a h x --- sdlm bus receive byte counter (bus) 0000 h rxcpu eb4e h x --- sdlm cpu receive byte counter reg. 0000 h rxd00 eb40 h x --- sdlm receive data register 00 (cpu) 0000 h rxd010 eb4a h x --- sdlm receive data register 010 (cpu) 0000 h rxd02 eb42 h x --- sdlm receive data register 02 (cpu) 0000 h rxd04 eb44 h x --- sdlm receive data register 04 (cpu) 0000 h rxd06 eb46 h x --- sdlm receive data register 06 (cpu) 0000 h rxd08 eb48 h x --- sdlm receive data register 08 (cpu) 0000 h rxd10 eb50 h x --- sdlm receive data register 10 (bus) 0000 h rxd110 eb5a h x --- sdlm receive data register 110 (bus) 0000 h rxd12 eb52 h x --- sdlm receive data register 12 (bus) 0000 h rxd14 eb54 h x --- sdlm receive data register 14 (bus) 0000 h rxd16 eb56 h x --- sdlm receive data register 16 (bus) 0000 h table 7 c161cs/jc/ji registers, ordered by name (contd) name physical address 8-bit addr. description reset value
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 46 v3.0, 2001-01 rxd18 eb58 h x --- sdlm receive data register 18 (bus) 0000 h s0bg feb4 h 5a h serial channel 0 baud rate generator reload register 0000 h s0con b ffb0 h d8 h serial channel 0 control register 0000 h s0eic b ff70 h b8 h serial channel 0 error interrupt ctrl. reg. 0000 h s0rbuf feb2 h 59 h serial channel 0 receive buffer register (read only) xxxx h s0ric b ff6e h b7 h serial channel 0 receive interrupt control register 0000 h s0tbic b f19c h e ce h serial channel 0 transmit buffer interrupt control register 0000 h s0tbuf feb0 h 58 h serial channel 0 transmit buffer register 0000 h s0tic b ff6c h b6 h serial channel 0 transmit interrupt control register 0000 h s1bg eda4 h x --- serial channel 1 baud rate generator reload register 0000 h s1con eda6 h x --- serial channel 1 control register 0000 h s1rbuf eda2 h x --- serial channel 1 receive buffer register (read only) xxxx h s1tbuf eda0 h x --- serial channel 1 transmit buffer register 0000 h sofptr eb60 h x --- sdlm start-of-frame pointer register 0000 h sp fe12 h 09 h cpu system stack pointer register fc00 h sscbr f0b4 h e 5a h ssc baudrate register 0000 h ssccon b ffb2 h d9 h ssc control register 0000 h ssceic b ff76 h bb h ssc error interrupt control register 0000 h sscrb f0b2 h e 59 h ssc receive buffer (read only) xxxx h sscric b ff74 h ba h ssc receive interrupt control register 0000 h ssctb f0b0 h e 58 h ssc transmit buffer (write only) 0000 h ssctic b ff72 h b9 h ssc transmit interrupt control register 0000 h stkov fe14 h 0a h cpu stack overflow pointer register fa00 h stkun fe16 h 0b h cpu stack underflow pointer register fc00 h table 7 c161cs/jc/ji registers, ordered by name (contd) name physical address 8-bit addr. description reset value
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 47 v3.0, 2001-01 syscon b ff12 h 89 h cpu system configuration register 1) 0xx0 h syscon1 b f1dc h e ee h cpu system configuration register 1 0000 h syscon2 b f1d0 h e e8 h cpu system configuration register 2 0000 h syscon3 b f1d4 h e ea h cpu system configuration register 3 0x00 h t0 fe50 h 28 h capcom timer 0 register 0000 h t01con b ff50 h a8 h capcom timer 0 and timer 1 ctrl. reg. 0000 h t0ic b ff9c h ce h capcom timer 0 interrupt ctrl. reg. 0000 h t0rel fe54 h 2a h capcom timer 0 reload register 0000 h t1 fe52 h 29 h capcom timer 1 register 0000 h t14 f0d2 h e 69 h rtc timer 14 register no t14rel f0d0 h e 68 h rtc timer 14 reload register no t1ic b ff9e h cf h capcom timer 1 interrupt ctrl. reg. 0000 h t1rel fe56 h 2b h capcom timer 1 reload register 0000 h t2 fe40 h 20 h gpt1 timer 2 register 0000 h t2con b ff40 h a0 h gpt1 timer 2 control register 0000 h t2ic b ff60 h b0 h gpt1 timer 2 interrupt control register 0000 h t3 fe42 h 21 h gpt1 timer 3 register 0000 h t3con b ff42 h a1 h gpt1 timer 3 control register 0000 h t3ic b ff62 h b1 h gpt1 timer 3 interrupt control register 0000 h t4 fe44 h 22 h gpt1 timer 4 register 0000 h t4con b ff44 h a2 h gpt1 timer 4 control register 0000 h t4ic b ff64 h b2 h gpt1 timer 4 interrupt control register 0000 h t5 fe46 h 23 h gpt2 timer 5 register 0000 h t5con b ff46 h a3 h gpt2 timer 5 control register 0000 h t5ic b ff66 h b3 h gpt2 timer 5 interrupt control register 0000 h t6 fe48 h 24 h gpt2 timer 6 register 0000 h t6con b ff48 h a4 h gpt2 timer 6 control register 0000 h t6ic b ff68 h b4 h gpt2 timer 6 interrupt control register 0000 h t7 f050 h e 28 h capcom timer 7 register 0000 h t78con b ff20 h 90 h capcom timer 7 and 8 ctrl. reg. 0000 h t7ic b f17a h e bd h capcom timer 7 interrupt ctrl. reg. 0000 h t7rel f054 h e 2a h capcom timer 7 reload register 0000 h table 7 c161cs/jc/ji registers, ordered by name (contd) name physical address 8-bit addr. description reset value
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 48 v3.0, 2001-01 t8 f052 h e 29 h capcom timer 8 register 0000 h t8ic b f17c h e be h capcom timer 8 interrupt ctrl. reg. 0000 h t8rel f056 h e 2b h capcom timer 8 reload register 0000 h tfr b ffac h d6 h trap flag register 0000 h transstat eb1e h x --- sdlm transmission status register 0000 h txcnt eb3c h x --- sdlm bus transmit byte counter reg. 0000 h txcpu eb3e h x --- sdlm cpu transmit byte counter reg. 0000 h txd0 eb30 h x --- sdlm transmit data register 0 0000 h txd10 eb3a h x --- sdlm transmit data register 10 0000 h txd2 eb32 h x --- sdlm transmit data register 2 0000 h txd4 eb34 h x --- sdlm transmit data register 4 0000 h txd6 eb36 h x --- sdlm transmit data register 6 0000 h txd8 eb38 h x --- sdlm transmit data register 8 0000 h txdelay eb16 h x --- sdlm transceiver delay register 0014 h wdt feae h 57 h watchdog timer register (read only) 0000 h wdtcon b ffae h d7 h watchdog timer control register 2) 00xx h xp0ic b f186 h e c3 h iic data interrupt control register 0000 h xp1ic b f18e h e c7 h iic protocol interrupt control register 0000 h xp2ic b f196 h e cb h can1 interrupt control register 0000 h xp3ic b f19e h e cf h pll/rtc interrupt control register 0000 h xp4ic b f182 h e c1 h asc1 transmit interrupt ctrl. reg. 0000 h xp5ic b f18a h e c5 h asc1 receive interrupt control register 0000 h xp6ic b f192 h e c9 h asc1 error interrupt control register 0000 h xp7ic b f19a h e cd h can2/sdlm interrupt control register 0000 h zeros b ff1c h 8e h constant value 0s register (read only) 0000 h 1) the system configuration is selected during reset. 2) the reset value depends on the indicated reset source. table 7 c161cs/jc/ji registers, ordered by name (contd) name physical address 8-bit addr. description reset value
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 49 v3.0, 2001-01 absolute maximum ratings note: stresses above those listed under absolute maximum ratings may cause permanent damage to the device. this is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sections of this specification is not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. during absolute maximum rating overload conditions ( v in > v dd or v in < v ss ) the voltage on v dd pins with respect to ground ( v ss ) must not exceed the values defined by the absolute maximum ratings. table 8 absolute maximum rating parameters parameter symbol limit values unit notes min. max. storage temperature t st -65 150 c C junction temperature t j -40 150 c under bias voltage on v dd pins with respect to ground ( v ss ) v dd -0.5 6.5 v C voltage on any pin with respect to ground ( v ss ) v in -0.5 v dd + 0.5 v C input current on any pin during overload condition C-1010maC absolute sum of all input currents during overload condition C C |100| ma C power dissipation p diss C1.5wC
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 50 v3.0, 2001-01 operating conditions the following operating conditions must not be exceeded in order to ensure correct operation of the c161cs/jc/ji. all parameters specified in the following sections refer to these operating conditions, unless otherwise noticed. table 9 operating condition parameters parameter symbol limit values unit notes min. max. digital supply voltage v dd 4.5 5.5 v active mode, f cpumax = 25 mhz 2.5 1) 1) output voltages and output currents will be reduced when v dd leaves the range defined for active mode. 5.5 v powerdown mode digital ground voltage v ss 0 v reference voltage overload current i ov C 5maper pin 2)3)4) 2) overload conditions occur if the standard operatings conditions are exceeded, i.e. the voltage on any pin exceeds the specified range (i.e. v ov > v dd + 0.5 v or v ov < v ss - 0.5 v). the absolute sum of input overload currents on all pins may not exceed 50 ma . the supply voltage must remain within the specified limits. proper operation is not guaranteed if overload conditions occur on functional pins line xtal1, rd , wr , etc. 3) not 100% tested, guaranteed by design and characterization. 4) due to the different port structure of port 9 (required by the iic bus specification) the pins of port 9 can only tolerate positive overload current, i.e. v ov > v ss -0.5v. absolute sum of overload currents s | i ov | C 50 ma 3) external load capacitance c l C 100 pf pin drivers in fast edge mode 5) 5) the timing is valid for pin drivers in high current or dynamic current mode. the reduced static output current in dynamic current mode must be respected when designing the system. ambient temperature t a 070 c sab-c161cs/jc/ji -40 85 c saf-c161cs/jc/ji -40 125 c sak-c161cs/jc/ji
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 51 v3.0, 2001-01 parameter interpretation the parameters listed in the following partly represent the characteristics of the c161cs/ jc/ji and partly its demands on the system. to aid in interpreting the parameters right, when evaluating them for a design, they are marked in column symbol: cc ( c ontroller c haracteristics): the logic of the c161cs/jc/ji will provide signals with the respective timing characteristics. sr ( s ystem r equirement): the external system must provide signals with the respective timing characteristics to the c161cs/jc/ji. dc characteristics (operating conditions apply) 1) parameter symbol limit values unit test condition min. max. input low voltage (ttl, all except xtal1, xtal3, port 9) v il sr -0.5 0.2 v dd - 0.1 vC input low voltage xtal1, xtal3, port 9 v il2 sr -0.5 0.3 v dd vC input low voltage (special threshold) v ils sr -0.5 2.0 v C input high voltage (ttl, all except rstin , xtal1, xtal3, port 9) v ih sr 0.2 v dd + 0.9 v dd + 0.5 vC input high voltage rstin (when operated as input) v ih1 sr 0.6 v dd v dd + 0.5 vC input high voltage xtal1, xtal3, port 9 v ih2 sr 0.7 v dd v dd + 0.5 vC input high voltage (special threshold) v ihs sr 0.8 v dd - 0.2 v dd + 0.5 vC input hysteresis (special threshold) hys 400 C mv series resistance = 0 w output low voltage (port0, port1, port 4, ale, rd , wr , bhe , clkout, rstout , rstin 2) ) v ol cc C 0.45 v i ol = 2.4 ma 3) i ol = 0.5 ma 4) output low voltage (port 9) v ol9 cc C 0.4 v i ol = 3.0 ma
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 52 v3.0, 2001-01 output low voltage (all other outputs) v ol1 cc C0.45v i ol = 1.6 ma 3) i ol = 1.6 ma 4) output high voltage 5) (port0, port1, port 4, ale, rd , wr , bhe , clkout, rstout ) v oh cc 2.4 C v i oh = -2.4 ma 3) i oh = -0.5 ma 4) 0.9 v dd Cv i oh = -0.5 ma 3) output high voltage 5) (all other outputs) v oh1 cc 2.4 C v i oh = -1.6 ma 3) i oh = -0.5 ma 4) 0.9 v dd Cv i oh = -0.5 ma 3) input leakage current (port 5) i oz1 cc C 200 na 0 v < v in < v dd input leakage current (all other) i oz2 cc C 500 na 0.45 v < v in < v dd rstin inactive current 6) i rsth 7) C-10 m a v in = v ih1 rstin active current 6) i rstl 8) -100 C m a v in = v il ready /rd /wr inact. current 9) i rwh 7) C-40 m a v out = 2.4 v ready /rd /wr active current 9) i rwl 8) -500 C m a v out = v olmax ale inactive current 9) i alel 7) C40 m a v out = v olmax ale active current 9) i aleh 8) 500 C m a v out = 2.4 v port 6 inactive current 9) i p6h 7) C-40 m a v out = 2.4 v port 6 active current 9) i p6l 8) -500 C m a v out = v ol1max port0 configuration current 10) i p0h 7) C-10 m a v in = v ihmin i p0l 8) -100 C m a v in = v ilmax xtal1 input current i il cc C 20 m a0 v < v in < v dd pin capacitance 11) (digital inputs/outputs) c io cc C 10 pf f = 1 mhz t a = 25 c 1) keeping signal levels within the levels specified in this table, ensures operation without overload conditions. for signal levels outside these specifications also refer to the specification of the overload current i ov . 2) valid in bidirectional reset mode only. 3) this output current may be drawn from (output) pins operating in high current mode. 4) this output current may be drawn from (output) pins operating in low current mode. 5) this specification is not valid for outputs which are switched to open drain mode. in this case the respective output will float and the voltage results from the external circuitry. dc characteristics (contd) (operating conditions apply) 1) parameter symbol limit values unit test condition min. max.
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 53 v3.0, 2001-01 6) these parameters describe the rstin pullup, which equals a resistance of ca. 50 to 250 k w . 7) the maximum current may be drawn while the respective signal line remains inactive. 8) the minimum current must be drawn in order to drive the respective signal line active. 9) this specification is valid during reset and during hold-mode or adapt-mode. during hold-mode port 6 pins are only affected, if they are used (configured) for cs output and the open drain function is not enabled. the ready -pullup is always active, except for powerdown mode. 10) this specification is valid during reset and during adapt-mode. 11) not 100% tested, guaranteed by design and characterization. power consumption c161cs/jc/ji (operating conditions apply) parameter symbol limit values unit test condition min. max. power supply current (active) with all peripherals active i dd C15 + 2.5 f cpu ma rstin = v il f cpu in [mhz] 1) 1) the supply current is a function of the operating frequency. this dependency is illustrated in figure 10 . these parameters are tested at v ddmax and maximum cpu clock with all outputs disconnected and all inputs at v il or v ih . idle mode supply current with all peripherals active i idx C5 + 1.5 f cpu ma rstin = v ih1 f cpu in [mhz] 1) idle mode supply curr., main osc, with all peripherals deactivated, pll off, sdd factor = 32 i idom 2) 2) this parameter is determined mainly by the current consumed by the oscillator (see figure 9 ). this current, however, is influenced by the external oscillator circuitry (crystal, capacitors). the values given refer to a typical circuitry and may change in case of a not optimized external oscillator circuitry. C 500 + 50 f osc m arstin = v ih1 f osc in [mhz] 1) idle mode supply curr., aux. osc, with all peripherals deactivated, pll off, sdd factor = 32 i idoa 2) C100 m a v dd = v ddmax f osc = 32 khz 3) 3) this parameter is tested including leakage currents. all inputs (including pins configured as inputs) at 0 v to 0.1 v or at v dd - 0.1 v to v dd , all outputs (including pins configured as outputs) disconnected. sleep and power-down mode supply current with rtc running on main oscillator i pdrm 2) C 200 + 25 f osc m a v dd = v ddmax f osc in [mhz] 3) sleep and power-down mode supply current with rtc disabled i pdo C50 m a v dd = v ddmax 3)
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 54 v3.0, 2001-01 figure 9 idle and power down supply current as a function of oscillator frequency mcd04453 f osc 0 a 0 48 12 16 250 500 750 1000 1250 1500 mhz i i idommax i idomtyp i pdrmmax i pdomax i idoamax
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 55 v3.0, 2001-01 figure 10 supply/idle current as a function of operating frequency i [ma] f cpu [mhz] 10 15 20 25 i dd5max i dd5typ i idx5max i idx5typ 20 40 60 80 100
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 56 v3.0, 2001-01 ac characteristics definition of internal timing the internal operation of the c161cs/jc/ji is controlled by the internal cpu clock f cpu . both edges of the cpu clock can trigger internal (e.g. pipeline) or external (e.g. bus cycles) operations. the specification of the external timing (ac characteristics) therefore depends on the time between two consecutive edges of the cpu clock, called tcl (see figure 11 ). figure 11 generation mechanisms for the cpu clock the cpu clock signal f cpu can be generated from the oscillator clock signal f osc via different mechanisms. the duration of tcls and their variation (and also the derived external timing) depends on the used mechanism to generate f cpu . this influence must be regarded when calculating the timings for the c161cs/jc/ji. note: the example for pll operation shown in the fig. above refers to a pll factor of 4. the used mechanism to generate the basic cpu clock is selected by bitfield clkcfg in register rp0h.7-5. upon a long hardware reset register rp0h is loaded with the logic levels present on the upper half of port0 (p0h), i.e. bitfield clkcfg represents the logic levels on pins mct04338 f osc f cpu phase locked loop operation tcl f osc f cpu direct clock drive f osc f cpu prescaler operation tcl tcl tcl tcl tcl
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 57 v3.0, 2001-01 p0.15-13 (p0h.7-5). register rp0h can be loaded from the upper half of register rstcon under software control. table 10 associates the combinations of these three bits with the respective clock generation mode. prescaler operation when prescaler operation is configured (clkcfg = 001 b ) the cpu clock is derived from the internal oscillator (input clock signal) by a 2:1 prescaler. the frequency of f cpu is half the frequency of f osc and the high and low time of f cpu (i.e. the duration of an individual tcl) is defined by the period of the input clock f osc . the timings listed in the ac characteristics that refer to tcls therefore can be calculated using the period of f osc for any tcl. phase locked loop when pll operation is configured (via clkcfg) the on-chip phase locked loop is enabled and provides the cpu clock (see table above). the pll multiplies the input frequency by the factor f which is selected via the combination of pins p0.15-13 (i.e. f cpu = f osc f ). with every f th transition of f osc the pll circuit synchronizes the cpu clock to the input clock. this synchronization is done smoothly, i.e. the cpu clock frequency does not change abruptly. due to this adaptation to the input clock the frequency of f cpu is constantly adjusted so it is locked to f osc . the slight variation causes a jitter of f cpu which also effects the duration of individual tcls. table 10 c161cs/jc/ji clock generation modes clkcfg (p0h.7-5) cpu frequency f cpu = f osc f external clock input range 1) 1) the external clock input range refers to a cpu clock range of 10 25 mhz. notes 11 1 f osc 4 2.5 to 6.25 mhz default configuration 110 f osc 3 3.33 to 8.33 mhz C 101 f osc 2 5 to 12.5 mhz C 100 f osc 5 2 to 5 mhz C 011 f osc 1 1 to 25 mhz direct drive 2) 2) the maximum frequency depends on the duty cycle of the external clock signal. 010 f osc 1.5 6.66 to 16.6 mhz C 001 f osc / 2 2 to 50 mhz cpu clock via prescaler 000 f osc 2.5 4 to 10 mhz C
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 58 v3.0, 2001-01 the timings listed in the ac characteristics that refer to tcls therefore must be calculated using the minimum tcl that is possible under the respective circumstances. the actual minimum value for tcl depends on the jitter of the pll. as the pll is constantly adjusting its output frequency so it corresponds to the applied input frequency (crystal or oscillator) the relative deviation for periods of more than one tcl is lower than for one single tcl (see formula and figure 12 ). for a period of n tcl the minimum value is computed using the corresponding deviation d n : ( n tcl) min = n tcl nom - d n d n [ns] = (13.3 + n 6.3) / f cpu [mhz], where n = number of consecutive tcls and 1 n 40. so for a period of 3 tcls @ 25 mhz (i.e. n = 3): d 3 = (13.3 + 3 6.3) / 25 = 1.288 ns, and (3tcl) min = 3tcl nom - 1.288 ns = 58.7 ns (@ f cpu = 25 mhz). this is especially important for bus cycles using waitstates and e.g. for the operation of timers, serial interfaces, etc. for all slower operations and longer periods (e.g. pulse train generation or measurement, lower baudrates, etc.) the deviation caused by the pll jitter is neglectible. note: for all periods longer than 40 tcl the n = 40 value can be used (see figure 12 ). figure 12 approximated maximum accumulated pll jitter mcd04455 n max. jitter d n 1 10 20 30 ns 26.5 110 20 40 this approximated formula is valid for 1 n 40 and 10 mhz f cpu 25 mhz. 10 mhz 16 mhz 20 mhz 25 mhz 30 < C < C < C < C
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 59 v3.0, 2001-01 direct drive when direct drive is configured (clkcfg = 011 b ) the on-chip phase locked loop is disabled and the cpu clock is directly driven from the internal oscillator with the input clock signal. the frequency of f cpu directly follows the frequency of f osc so the high and low time of f cpu (i.e. the duration of an individual tcl) is defined by the duty cycle of the input clock f osc . the timings listed below that refer to tcls therefore must be calculated using the minimum tcl that is possible under the respective circumstances. this minimum value can be calculated via the following formula: tcl min = 1/ f osc dc min (dc = duty cycle) for two consecutive tcls the deviation caused by the duty cycle of f osc is compensated so the duration of 2tcl is always 1/ f osc . the minimum value tcl min therefore has to be used only once for timings that require an odd number of tcls (1, 3, ). timings that require an even number of tcls (2, 4, ) may use the formula 2tcl = 1/ f osc . note: the address float timings in multiplexed bus mode ( t 11 and t 45 ) use the maximum duration of tcl (tcl max = 1/ f osc dc max ) instead of tcl min .
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 60 v3.0, 2001-01 ac characteristics external clock drive xtal1 (main oscillator) (operating conditions apply) figure 13 external clock drive xtal1 note: if the on-chip oscillator is used together with a crystal, the oscillator frequency is limited to a range of 4 mhz to 16 mhz. it is strongly recommended to measure the oscillation allowance (or margin) in the final target system (layout) to determine the optimum parameters for the oscillator operation. please refer to the limits specified by the crystal supplier. when driven by an external clock signal it will accept the specified frequency range. operation at lower input frequencies is possible but is guaranteed by design only (not 100% tested). table 11 external clock drive characteristics parameter symbol direct drive 1:1 prescaler 2:1 pll 1:n unit min. max. min. max. min. max. oscillator period t oscm sr 40 C20C60 1) 1) the minimum and maximum oscillator periods for pll operation depend on the selected cpu clock generation mode. please see respective table above. 500 1) ns high time 2) 2) the clock input signal must reach the defined levels v il2 and v ih2 . t 1 sr 20 3) 3) the minimum high and low time refers to a duty cycle of 50%. the maximum operating frequency ( f cpu ) in direct drive mode depends on the duty cycle of the clock input signal. C6C10Cns low time 2) t 2 sr 20 3) C6C10Cns rise time 2) t 3 sr C 10 C 6 C 10 ns fall time 2) t 4 sr C 10 C 6 C 10 ns mct02534 3 t 4 t v ih2 v il v dd 0.5 1 t 2 t osc t
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 61 v3.0, 2001-01 ac characteristics external clock drive xtal3 (auxiliary oscillator) (operating conditions apply) note: the auxiliary oscillator is optimized for oscillation with a crystal at a frequency of 32 khz. when driven by an external clock signal it will accept the specified frequency range. operation at lower input frequencies is possible but is guaranteed by design only (not 100% tested). table 12 ac characteristics parameter symbol optimum input clock = 32 khz variable input clock 1 / t osca = 10 to 50 khz unit min. max. min. max. oscillator period t osca sr 31 31 20 100 m s high time t 1 sr 6 1) 1) the clock input signal must reach the defined levels v il and v ih2 . C0.2 t osca 1) C m s low time t 2 sr 6 1) C0.2 t osca 1) C m s rise time t 3 sr C 12 C 0.4 t osca m s fall time t 4 sr C 12 C 0.4 t osca m s
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 62 v3.0, 2001-01 a/d converter characteristics (operating conditions apply) table 13 a/d converter characteristics parameter symbol limit values unit test condition min. max. analog reference supply v aref sr 4.0 v dd + 0.1 v 1) 1) tue is tested at v aref =5.0v, v agnd =0v, v dd = 4.9 v. it is guaranteed by design for all other voltages within the defined voltage range. if the analog reference supply voltage exceeds the power supply voltage by up to 0.2 v (i.e. v aref = v dd = +0.2 v) the maximum tue is increased to 3 lsb. this range is not 100% tested. the specified tue is guaranteed only if the absolute sum of input overload currents on port 5 pins (see i ov specification) does not exceed 10 ma. during the reset calibration sequence the maximum tue may be 4 lsb. analog reference ground v agnd sr v ss - 0.1 v ss + 0.2 v analog input voltage range v ain sr v agnd v aref v 2) 2) v ain may exceed v agnd or v aref up to the absolute maximum ratings. however, the conversion result in these cases will be x000 h or x3ff h , respectively. basic clock frequency f bc 0.5 6.25 mhz 3) 3) the limit values for f bc must not be exceeded when selecting the cpu frequency and the adctc setting. conversion time t c cc C40 t bc + t s + 2 t cpu C 4) t cpu = 1 / f cpu 4) this parameter includes the sample time t s , the time for determining the digital result and the time to load the result register with the conversion result. values for the basic clock t bc depend on programming and can be taken from table 14 . this parameter depends on the adc control logic. it is not a real maximum value, but rather a fixum. calibration time after reset t cal cc C 3328 t bc C 5) 5) during the reset calibration conversions can be executed (with the current accuracy). the time required for these conversions is added to the total reset calibration time. total unadjusted error tue cc C 2lsb 1) internal resistance of reference voltage source r aref sr C t bc / 60 - 0.25 k w t bc in [ns] 6)7) 6) during the conversion the adcs capacitance must be repeatedly charged or discharged. the internal resistance of the reference voltage source must allow the capacitance to reach its respective voltage level within each conversion step. the maximum internal resistance results from the programmed conversion timing. 7) not 100% tested, guaranteed by design and characterization. internal resistance of analog source r asrc sr C t s / 450 - 0.25 k w t s in [ns] 7)8) adc input capacitance c ain cc C 33 pf 7)
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 63 v3.0, 2001-01 sample time and conversion time of the c161cs/jc/jis a/d converter are programmable. table 14 should be used to calculate the above timings. the limit values for f bc must not be exceeded when selecting adctc. converter timing example: assumptions: f cpu = 25 mhz (i.e. t cpu = 40 ns), adctc = 00, adstc = 00. basic clock f bc = f cpu / 4 = 6.25 mhz, i.e. t bc = 160 ns. sample time t s = t bc 8 = 1280 ns. conversion time t c = t s + 40 t bc + 2 t cpu = (1280 + 6400 + 80) ns = 7.8 m s. 8) during the sample time the input capacitance c ain can be charged/discharged by the external source. the internal resistance of the analog source must allow the capacitance to reach its final voltage level within t s . after the end of the sample time t s , changes of the analog input voltage have no effect on the conversion result. values for the sample time t s depend on programming and can be taken from table 14 . table 14 a/d converter computation table adcon.15|14 (adctc) a/d converter basic clock f bc adcon.13|12 (adstc) sample time t s 00 f cpu / 4 00 t bc 8 01 f cpu / 2 01 t bc 16 10 f cpu / 16 10 t bc 32 11 f cpu / 8 11 t bc 64
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 64 v3.0, 2001-01 testing waveforms figure 14 input output waveforms figure 15 float waveforms mca04414 2.4 v 0.45 v 1.8 v 0.8 v 1.8 v 0.8 v test points ac inputs during testing are driven at 2.4 v for a logic 1' and 0.45 v for a logic 0'. timing measurements are made at ih v min for a logic 1' and v il max for a logic 0'. ' ' ' ' mca00763 - 0.1 v + 0.1 v + 0.1 v - 0.1 v reference for timing purposes a port pin is no longer floating when a 100 mv change from load voltage occurs, but begins to float when a 100 mv change from the loaded oh v timing points load v v load oh v v ol / v ol level occurs ( i oh ol i / = 20 ma).
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 65 v3.0, 2001-01 memory cycle variables the timing tables below use three variables which are derived from the busconx registers and represent the special characteristics of the programmed memory cycle. the following table describes, how these variables are to be computed. note: please respect the maximum operating frequency of the respective derivative. ac characteristics table 15 memory cycle variables description symbol values ale extension t a tcl memory cycle time waitstates t c 2tcl (15 - ) memory tristate time t f 2tcl (1 - ) multiplexed bus (operating conditions apply) ale cycle time = 6 tcl + 2 t a + t c + t f (120 ns at 25 mhz cpu clock without waitstates) parameter symbol max. cpu clock = 25 mhz variable cpu clock 1 / 2tcl = 1 to 25 mhz unit min. max. min. max. ale high time t 5 cc 10 + t a C tcl - 10 + t a Cns address setup to ale t 6 cc 4 + t a C tcl - 16 + t a Cns address hold after ale t 7 cc 10 + t a C tcl - 10 + t a Cns ale falling edge to rd , wr (with rw-delay) t 8 cc 10 + t a C tcl - 10 + t a Cns ale falling edge to rd , wr (no rw-delay) t 9 cc -10 + t a C-10 + t a Cns address float after rd , wr (with rw-delay) t 10 ccC6C6ns address float after rd , wr (no rw-delay) t 11 cc C 26 C tcl + 6 ns rd , wr low time (with rw-delay) t 12 cc 30 + t c C 2tcl - 10 + t c Cns
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 66 v3.0, 2001-01 rd , wr low time (no rw-delay) t 13 cc 50 + t c C 3tcl - 10 + t c Cns rd to valid data in (with rw-delay) t 14 sr C 20 + t c C2tcl - 20 + t c ns rd to valid data in (no rw-delay) t 15 sr C 40 + t c C3tcl - 20 + t c ns ale low to valid data in t 16 sr C 40 + t a + t c C3tcl - 20 + t a + t c ns address to valid data in t 17 sr C 50 + 2 t a + t c C4tcl - 30 + 2 t a + t c ns data hold after rd rising edge t 18 sr0C0Cns data float after rd t 19 sr C 26 + t f C 2tcl - 14 + t f ns data valid to wr t 22 cc 20 + t c C 2tcl - 20 + t c Cns data hold after wr t 23 cc 26 + t f C 2tcl - 14 + t f Cns ale rising edge after rd , wr t 25 cc 26 + t f C 2tcl - 14 + t f Cns address hold after rd , wr t 27 cc 26 + t f C 2tcl - 14 + t f Cns ale falling edge to cs 1) t 38 cc -4 - t a 10 - t a -4 - t a 10 - t a ns cs low to valid data in 1) t 39 sr C 40 + t c + 2 t a C3tcl - 20 + t c + 2 t a ns cs hold after rd , wr 1) t 40 cc 46 + t f C 3tcl - 14 + t f Cns ale fall. edge to rdcs , wrcs (with rw delay) t 42 cc 16 + t a C tcl - 4 + t a Cns multiplexed bus (contd) (operating conditions apply) ale cycle time = 6 tcl + 2 t a + t c + t f (120 ns at 25 mhz cpu clock without waitstates) parameter symbol max. cpu clock = 25 mhz variable cpu clock 1 / 2tcl = 1 to 25 mhz unit min. max. min. max.
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 67 v3.0, 2001-01 ale fall. edge to rdcs , wrcs (no rw delay) t 43 cc -4 + t a C-4 + t a Cns address float after rdcs , wrcs (with rw delay) t 44 ccC0C0ns address float after rdcs , wrcs (no rw delay) t 45 cc C 20 C tcl ns rdcs to valid data in (with rw delay) t 46 sr C 16 + t c C2tcl - 24 + t c ns rdcs to valid data in (no rw delay) t 47 sr C 36 + t c C3tcl - 24 + t c ns rdcs , wrcs low time (with rw delay) t 48 cc 30 + t c C 2tcl - 10 + t c Cns rdcs , wrcs low time (no rw delay) t 49 cc 50 + t c C 3tcl - 10 + t c Cns data valid to wrcs t 50 cc 26 + t c C 2tcl - 14 + t c Cns data hold after rdcs t 51 sr0C0Cns data float after rdcs t 52 sr C 20 + t f C 2tcl - 20 + t f ns address hold after rdcs , wrcs t 54 cc 20 + t f C 2tcl - 20 + t f Cns data hold after wrcs t 56 cc 20 + t f C 2tcl - 20 + t f Cns 1) these parameters refer to the latched chip select signals (csxl ). the early chip select signals (csxe ) are specified together with the address and signal bhe (see figures below). multiplexed bus (contd) (operating conditions apply) ale cycle time = 6 tcl + 2 t a + t c + t f (120 ns at 25 mhz cpu clock without waitstates) parameter symbol max. cpu clock = 25 mhz variable cpu clock 1 / 2tcl = 1 to 25 mhz unit min. max. min. max.
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 68 v3.0, 2001-01 figure 16 external memory cycle: multiplexed bus, with read/write delay, normal ale address data out address data in address mct04439 a23-a16 (a15-a8) bhe, csxe ale csxl ` bus rd rdcsx read cycle bus write cycle t 5 t 16 t 25 t 38 t 39 t 40 t 27 t 17 t 6 t 7 t 19 t 54 t 18 t 8 t 10 t 12 t 42 t 44 t 52 t 51 t 48 t 23 t 8 t 10 t 14 t 46 t 22 t 56 wr, wrl, wrh wrcsx t 12 t 42 t 44 t 48 t 50
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 69 v3.0, 2001-01 figure 17 external memory cycle: multiplexed bus, with read/write delay, extended ale address address data out address data in mct04440 a23-a16 (a15-a8) bhe, csxe ale csxl bus rd rdcsx read cycle bus write cycle t 5 t 16 t 25 t 38 t 39 t 40 t 27 t 17 t 7 t 19 t 54 t 18 t 8 t 10 t 12 t 42 t 44 t 52 t 51 t 48 t 23 t 8 t 10 t 14 t 46 t 22 t 56 wr, wrl, wrh wrcsx t 12 t 42 t 44 t 48 t 50 t 6
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 70 v3.0, 2001-01 figure 18 external memory cycle: multiplexed bus, no read/write delay, normal ale data out address address data in address mct04441 a23-a16 (a15-a8) bhe, csxe ale csxl bus rd rdcsx read cycle bus write cycle t 5 t 16 t 25 t 38 t 39 t 40 t 27 t 17 t 6 t 7 t 19 t 54 t 18 t 9 t 11 t 43 t 45 t 52 t 51 t 23 t 22 t 56 wr, wrl, wrh wrcsx t 13 t 49 t 50 t 9 t 11 t 43 t 45 t 15 t 13 t 47 t 49
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 71 v3.0, 2001-01 figure 19 external memory cycle: multiplexed bus, no read/write delay, extended ale address address data out address data in mct04442 a23-a16 (a15-a8) bhe, csxe ale csxl bus rd rdcsx read cycle bus write cycle t 5 t 16 t 25 t 38 t 39 t 40 t 27 t 17 t 7 t 19 t 54 t 18 t 9 t 11 t 43 t 52 t 51 t 49 t 23 t 9 t 15 t 47 t 22 t 56 wr, wrl, wrh wrcsx t 43 t 49 t 50 t 6 t 13 t 45 t 13 t 11 t 45
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 72 v3.0, 2001-01 ac characteristics demultiplexed bus (operating conditions apply) ale cycle time = 4 tcl + 2 t a + t c + t f (80 ns at 25 mhz cpu clock without waitstates) parameter symbol max. cpu clock = 25 mhz variable cpu clock 1 / 2tcl = 1 to 25 mhz unit min. max. min. max. ale high time t 5 cc 10 + t a Ctcl - 10 + t a Cns address setup to ale t 6 cc 4 + t a Ctcl - 16 + t a Cns ale falling edge to rd , wr (with rw-delay) t 8 cc 10 + t a Ctcl - 10 + t a Cns ale falling edge to rd , wr (no rw-delay) t 9 cc -10 + t a C-10 + t a Cns rd , wr low time (with rw-delay) t 12 cc 30 + t c C 2tcl - 10 + t c Cns rd , wr low time (no rw-delay) t 13 cc 50 + t c C 3tcl - 10 + t c Cns rd to valid data in (with rw-delay) t 14 sr C 20 + t c C2tcl - 20 + t c ns rd to valid data in (no rw-delay) t 15 sr C 40 + t c C3tcl - 20 + t c ns ale low to valid data in t 16 sr C 40 + t a + t c C3tcl - 20 + t a + t c ns address to valid data in t 17 sr C 50 + 2 t a + t c C4tcl - 30 + 2 t a + t c ns data hold after rd rising edge t 18 sr0C0Cns data float after rd rising edge (with rw-delay 1) ) t 20 sr C 26 + 2 t a + t f 1) C2tcl - 14 + 22 t a + t f 1) ns data float after rd rising edge (no rw-delay 1) ) t 21 sr C 10 + 2 t a + t f 1) Ctcl - 10 + 22 t a + t f 1) ns
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 73 v3.0, 2001-01 data valid to wr t 22 cc 20 + t c C 2tcl - 20 + t c Cns data hold after wr t 24 cc 10 + t f Ctcl - 10 + t f Cns ale rising edge after rd , wr t 26 cc -10 + t f C-10 + t f Cns address hold after wr 2) t 28 cc 0 + t f C0 + t f Cns ale falling edge to cs 3) t 38 cc -4 - t a 10 - t a -4 - t a 10 - t a ns cs low to valid data in 3) t 39 sr C 40 + t c + 2 t a C3tcl - 20 + t c + 2 t a ns cs hold after rd , wr 3) t 41 cc 6 + t f Ctcl - 14 + t f Cns ale falling edge to rdcs , wrcs (with rw-delay) t 42 cc 16 + t a C tcl - 4 + t a Cns ale falling edge to rdcs , wrcs (no rw-delay) t 43 cc -4 + t a C-4 + t a Cns rdcs to valid data in (with rw-delay) t 46 sr C 16 + t c C2tcl - 24 + t c ns rdcs to valid data in (no rw-delay) t 47 sr C 36 + t c C3tcl - 24 + t c ns rdcs , wrcs low time (with rw-delay) t 48 cc 30 + t c C 2tcl - 10 + t c Cns rdcs , wrcs low time (no rw-delay) t 49 cc 50 + t c C 3tcl - 10 + t c Cns data valid to wrcs t 50 cc 26 + t c C 2tcl - 14 + t c Cns data hold after rdcs t 51 sr0C0Cns data float after rdcs (with rw-delay) 1) t 53 sr C 20 + t f C2tcl - 20 + 2 t a + t f 1) ns demultiplexed bus (contd) (operating conditions apply) ale cycle time = 4 tcl + 2 t a + t c + t f (80 ns at 25 mhz cpu clock without waitstates) parameter symbol max. cpu clock = 25 mhz variable cpu clock 1 / 2tcl = 1 to 25 mhz unit min. max. min. max.
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 74 v3.0, 2001-01 data float after rdcs (no rw-delay) 1) t 68 sr C0 + t f Ctcl - 20 + 2 t a + t f 1) ns address hold after rdcs , wrcs t 55 cc -6 + t f C-6 + t f Cns data hold after wrcs t 57 cc 6 + t f C tcl - 14 + t f Cns 1) rw-delay and t a refer to the next following bus cycle (including an access to an on-chip x-peripheral). 2) read data are latched with the same clock edge that triggers the address change and the rising rd edge. therefore address changes before the end of rd have no impact on read cycles. 3) these parameters refer to the latched chip select signals (csxl ). the early chip select signals (csxe ) are specified together with the address and signal bhe (see figures below). demultiplexed bus (contd) (operating conditions apply) ale cycle time = 4 tcl + 2 t a + t c + t f (80 ns at 25 mhz cpu clock without waitstates) parameter symbol max. cpu clock = 25 mhz variable cpu clock 1 / 2tcl = 1 to 25 mhz unit min. max. min. max.
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 75 v3.0, 2001-01 figure 20 external memory cycle: demultiplexed bus, with read/write delay, normal ale data out address data in mct04443 a23-a16 a15-a0 bhe, csxe ale csxl rd rdcsx read cycle write cycle t 5 t 16 t 26 t 38 t 39 t 41 t 28 t 17 t 6 t 20 t 55 t 18 t 8 t 12 t 42 t 53 t 51 t 48 t 24 t 8 t 14 t 46 t 22 t 57 wr, wrl, wrh wrcsx t 12 t 42 t 48 t 50 bus (d15-d8) d7-d0 bus (d15-d8) d7-d0
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 76 v3.0, 2001-01 figure 21 external memory cycle: demultiplexed bus, with read/write delay, extended ale address data out data in mct04444 a23-a16 a15-a0 bhe, csxe ale csxl rd rdcsx read cycle write cycle t 5 t 16 t 26 t 38 t 39 t 41 t 28 t 17 t 20 t 55 t 18 t 8 t 12 t 42 t 53 t 51 t 48 t 24 t 8 t 14 t 46 t 22 t 57 wr, wrl, wrh wrcsx t 12 t 42 t 48 t 50 t 6 bus (d15-d8) d7-d0 bus (d15-d8) d7-d0
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 77 v3.0, 2001-01 figure 22 external memory cycle: demultiplexed bus, no read/write delay, normal ale data out address data in mct04445 a23-a16 a15-a0 bhe, csxe ale csxl rd rdcsx read cycle write cycle t 5 t 16 t 26 t 38 t 39 t 41 t 28 t 17 t 6 t 21 t 55 t 18 t 9 t 13 t 43 t 68 t 51 t 49 t 24 t 15 t 47 t 22 t 57 wr, wrl, wrh wrcsx t 13 t 43 t 49 t 50 bus (d15-d8) d7-d0 bus (d15-d8) d7-d0 t 9
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 78 v3.0, 2001-01 figure 23 external memory cycle: demultiplexed bus, no read/write delay, extended ale address data out data in mct04446 a23-a16 a15-a0 bhe, csxe ale csxl rd rdcsx read cycle write cycle t 5 t 16 t 26 t 38 t 39 t 41 t 28 t 17 t 21 t 55 t 18 t 9 t 13 t 43 t 68 t 51 t 49 t 24 t 9 t 15 t 47 t 22 t 57 wr, wrl, wrh wrcsx t 13 t 43 t 49 t 50 t 6 bus (d15-d8) d7-d0 bus (d15-d8) d7-d0
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 79 v3.0, 2001-01 ac characteristics clkout and ready (operating conditions apply) parameter symbol max. cpu clock = 25 mhz variable cpu clock 1 / 2tcl = 1 to 25 mhz unit min. max. min. max. clkout cycle time t 29 cc 40 40 2tcl 2tcl ns clkout high time t 30 cc 14 Ctcl - 6C ns clkout low time t 31 cc 10 C tcl - 10 C ns clkout rise time t 32 ccC4C4ns clkout fall time t 33 ccC4C4ns clkout rising edge to ale falling edge t 34 cc 0 + t a 10 + t a 0 + t a 10 + t a ns synchronous ready setup time to clkout t 35 sr 14 C 14 C ns synchronous ready hold time after clkout t 36 sr4C4Cns asynchronous ready low time t 37 sr 54 C 2tcl + t 58 Cns asynchronous ready setup time 1) 1) these timings are given for test purposes only, in order to assure recognition at a specific clock edge. t 58 sr 14 C 14 C ns asynchronous ready hold time 1) t 59 sr4C4Cns async. ready hold time after rd , wr high (demultiplexed bus) 2) 2) demultiplexed bus is the worst case. for multiplexed bus 2tcl are to be added to the maximum values. this adds even more time for deactivating ready . the 2 t a and t c refer to the next following bus cycle, t f refers to the current bus cycle. the maximum limit for t 60 must be fulfilled if the next following bus cycle is ready controlled. t 60 sr 0 0 + 2 t a + t c + t f 2) 0tcl - 20 + 2 t a + t c + t f 2) ns
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 80 v3.0, 2001-01 figure 24 clkout and ready notes 1) cycle as programmed, including mctc waitstates (example shows 0 mctc ws). 2) the leading edge of the respective command depends on rw-delay. 3) ready sampled high at this sampling point generates a ready controlled waitstate, ready sampled low at this sampling point terminates the currently running bus cycle. 4) ready may be deactivated in response to the trailing (rising) edge of the corresponding command (rd or wr ). 5) if the asynchronous ready signal does not fulfill the indicated setup and hold times with respect to clkout (e.g. because clkout is not enabled), it must fulfill t 37 in order to be safely synchronized. this is guaranteed, if ready is removed in reponse to the command (see note 4) ). 6) multiplexed bus modes have a mux waitstate added after a bus cycle, and an additional mttc waitstate may be inserted here. for a multiplexed bus with mttc waitstate this delay is 2 clkout cycles, for a demultiplexed bus without mttc waitstate this delay is zero. 7) the next external bus cycle may start here. mct04447 t 32 clkout ale command rd, wr sync ready async ready t 33 t 29 t 30 t 31 t 34 7) 2) 3) 3) t 35 t 36 t 35 t 36 t 58 t 59 3) t 58 t 59 3) t 37 5) t 60 4) see 6) running cycle 1) ready waitstate mux/tristate 6)
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 81 v3.0, 2001-01 ac characteristics external bus arbitration (operating conditions apply) parameter symbol max. cpu clock = 25 mhz variable cpu clock 1 / 2tcl = 1 to 25 mhz unit min. max. min. max. hold input setup time to clkout t 61 sr 20 C20 C ns clkout to hlda high or breq low delay t 62 cc C 20 C 20 ns clkout to hlda low or breq high delay t 63 cc C 20 C 20 ns csx release t 64 cc C 20 C 20 ns csx drive t 65 cc -4 24 -4 24 ns other signals release t 66 cc C 20 C 20 ns other signals drive t 67 cc C 4 24 C 4 24 ns
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 82 v3.0, 2001-01 figure 25 external bus arbitration, releasing the bus notes 1) the c161cs/jc/ji will complete the currently running bus cycle before granting bus access. 2) this is the first possibility for breq to get active. 3) the cs outputs will be resistive high (pullup) after t 64 . mct04448 t 61 t 62 clkout hold hlda breq csx (on p6.x) other signals t 63 t 64 t 66 see 1) 3) 1) 2)
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 83 v3.0, 2001-01 figure 26 external bus arbitration, (regaining the bus) notes 1) this is the last chance for breq to trigger the indicated regain-sequence. even if breq is activated earlier, the regain-sequence is initiated by hold going high. please note that hold may also be deactivated without the c161cs/jc/ji requesting the bus. 2) the next c161cs/jc/ji driven bus cycle may start here. mct04449 t 61 t 62 t 62 t 62 t 63 t 65 t 67 clkout hold hlda breq csx (on p6.x) other signals 2) 1)
c161cs/jc/ji-32r c161cs/jc/ji-l data sheet 84 v3.0, 2001-01 package outline p-tqfp-128-2 (plastic thin metric quad flat package) gpp09028 sorts of packing package outlines for tubes, trays etc. are contained in our data book package information. dimensions in mm smd = surface mounted device
http://www.infineon.com published by infineon technologies ag infineon goes for business excellence business excellence means intelligent approaches and clearly defined processes, which are both constantly under review and ultimately lead to good operating results. better operating results and business excellence mean less idleness and wastefulness for all of us, more professional success, more accurate information, a better overview and, thereby, less frustration and more satisfaction. dr. ulrich schumacher


▲Up To Search▲   

 
Price & Availability of SAK-C161CS-32RF

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X